Part Number Hot Search : 
EL790007 0805L CB10K2L0 LBS20801 JE3055 357LD5C 357LD5C 2SK24
Product Description
Full Text Search
 

To Download M37545G8-XXXGP Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 7545 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
REJ03B0140-0106 Rev.1.06 Mar 07, 2008
DESCRIPTION The 7545 Group is the 8-bit microcomputer based on the 740 family core technology. The 7545 Group has an 8-bit timer, power-on reset circuit and the voltage drop detection circuit. Also, Function set ROM is equipped. * Clock generating circuit ........................................ Built-in type (connect to external ceramic resonator or quartz-crystal oscillator) * Watchdog timer .........................................................16-bit x 1 * Power-on reset circuit............................................ Built-in type * Voltage drop detection circuit................................ Built-in type * Power source voltage XIN oscillation frequency at ceramic/quartz-crystal oscillation At 4 MHz .......................................... 1.8 to 3.6 V * Power dissipation .......................................................... 1.8mW * Operating temperature range .................................-20 to 85 C APPLICATION Remote control transmit.
FEATURES * Basic machine-language instructions .................................. 71 * The minimum instruction execution time .................... 2.00 s (at 4 MHz oscillation frequency for the shortest instruction) * Memory size ROM ........................................ 4K to 60K bytes RAM ............................................ 256, 512 bytes * Programmable I/O ports ...................................................... 25 * Key-on wakeup input .................................................. 8 inputs * LED output port ...................................................................... 8 * Interrupts.................................................... 7 sources, 7 vectors * Timers .......................................................................... 8-bit x 3 * Carrier wave generating circuit .......1 channel (8-bit timer x 2)
PIN CONFIGURATION (TOP VIEW)
4/KEY4 3/KEY3 2/KEY2 1/KEY1 0/KEY0
7
6
0 P 0 P
24 23 22 21 20 19 18 17
P0 P0 P0 P2 P2
0 P 0 P 0 P 3 P 3 P 3 P
5
5/KEY5 6/KEY6 7/KEY7
25 26 27 28 29 30 31 32 1 2 3 4 5 6 7 8
16 15 14
0(LED0)/INT0 1(LED1)/INT1
M 3 7545G x - X G P M 3 7545G x G P
13 12 11 10 9
P2 P2 P2
P3 P3 P3 P3 P3 V X X
4 3 2 1 0 SS OUT IN
2(LED2) 3(LED3) 4(LED4)
5(LED5)
6(LED6)
7(LED7)
Package type: PLQP0032GB-A (32P6U-A)
Fig. 1 Pin configuration (PLQP0032GB-A type)
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 1 of 59
2 P P2 2 P P4
2/CARR
V DDR RESET CNV SS VCC
7545 Group
PIN CONFIGURATION (TOP VIEW)
P21(LED1)/INT 1 P22(LED2) P23(LED3) P24(LED4) P25(LED5) P26(LED6) P27(LED7) P42/CARR RESET VDDR CNVSS VCC XIN XOUT VSS P30
1 2 3 4 5
32 31 30 29 28
6 7 8 9 10 11 12 13 14 15 16
27 26 25 24 23 22 21 20 19 18 17
P20(LED0)/INT 0 P07/KEY7 P06/KEY6 P05/KEY5 P04/KEY4 P03/KEY3 P02/KEY2 P01/KEY1 P37 P00/KEY0 P36 P35 P34 P33 P32 P31
Package type: PLSP0032JB-A
Fig. 2 Pin configuration (PLSP0032JB-A type)
PIN CONFIGURATION (TOP VIEW)
M37545GxKP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
P22(LED2) NC NC P2 3(LED3) P2 4(LED4) NC P2 5(LED5) P2 6(LED6) P2 7(LED7) P4 0(LED8) P4 1(LED9) P4 2/CARR NC NC V DDR RESET CNV SS V CC X IN X OUT V SS
42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22
P2 1(LED1)/INT1 P2 0(LED0)/INT0 P0 7/KEY7 P0 6/KEY6 P0 5/KEY5 P0 4/KEY4 P0 3/KEY3 P0 2/KEY2 P0 1/KEY1 P0 0/KEY0 P3 7 P3 6 NC P3 5 P3 4 P3 3 P3 2 P3 1 P3 0 P1 1 P1 0
Package type: 42S1M
Fig. 3 Pin configuration (42S1M type)
M37545RLSS
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 2 of 59
7545 Group
Table 1
Performance overview (1)
Parameter Function 71 2.00 s (Minimum instruction) M37545G1 M37545G2 M37545G4 M37545G6 M37545G8 M37545GC M37545GF RAM M37545G1/G2 M37545G4/G6/G8/GC/GF I/O 4096 bytes x 8 bits 8192 bytes x 8 bits 16384 bytes x 8 bits 24576 bytes x 8 bits 32768 bytes x 8 bits 49152 bytes x 8 bits 61440 bytes x 8 bits RAM1: 240 bytes x 8 bits, RAM2: 16 bytes x 8 bits RAM1: 384 bytes x 8 bits, RAM2: 128 bytes x 8 bits * * * * 1-bit x 8 CMOS compatible input level CMOS 3-state output structure Whether the pull-up function/key-on wakeup function is to be used or not can be determined by program.
Number of basic instructions Instruction execution time Memory sizes ROM
I/O port
P00-P07
P10, P11
I/O (RLSS-only pin)
* 1-bit x 2 * CMOS compatible input level * The output structure can be switched to N-channel open-drain or CMOS by software. * * * * * 1-bit x 8 CMOS compatible input level The output structure can be switched to N-channel open-drain or CMOS by software. P2 can output a large current for driving LED. P20 and P21 are also used as INT0 and INT1, respectively.
P20-P27
I/O
P30-P37
I/O
* 1-bit x 8 * CMOS compatible input level * The output structure can be switched to N-channel open-drain or CMOS by software. * 1-bit x 2 * CMOS compatible input level * CMOS 3-state output structure * * * * 1-bit x 1 CMOS compatible input level CMOS 3-state output structure Carrier wave output pin for remote-control transmitter
P40, P41
I/O (RLSS-only pin)
P42
I/O
Timer
Timer 1 Timer 2 Timer 3
8-bit timer with timer 1 latch Count source is Prescaler output. 8-bit timer with timer 2 primary latch and timer 2 secondary latch Count source can be selected from f(XIN)/16, f(XIN)/8, f(XIN)/2 or f(XIN)/1. 8-bit timer with timer 3 latch Count source can be selected from f(XIN)/16, f(XIN)/8 or f(XIN)/2 or carrier wave output. Remote-control waveform is generated by using timer 2 and timer 3. 455 kHz carrier wave generating mode is available. 16-bit x 1 Built-in Typ. 1.75 V (Ta=25 C) 7 sources (External x 3, Timer x 3, Software) Function set ROM is assigned to address FFDA16. Enable/disable of watchdog timer and STP instruction can be selected. Valid/invaid of voltage drop detection circuit can be selected. ROM code protect is assigned to address FFDB16. Read/write the built-in QzROM by serial programmer is disabled by setting "00" to ROM code protect. CMOS silicon gate 32-pin plastic molded LQFP (PLQP0032GB-A) 32-pin plastic molded SSOP (PLSP0032JB-A) -20 to 85 C 1.8 to 3.6 V
Carrier wave generating circuit Watchdog timer Power-on reset circuit Voltage drop detection circuit (Not available for RLSS) Interrupt Function set ROM area Source Function set ROM
ROM code protect
Device structure Package Operating temperature range Power source voltage f(XIN) = 4 MHz
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 3 of 59
7545 Group
Table 2
Performance overview (2)
Parameter Function Typ. 0.6 mA (f(XIN)=4 MHz, Vcc=3.0 V, output transistors "off" ) Typ. 0.3 mA (f(XIN)=4 MHz, Vcc=3.0 V, output transistors "off" , in WIT state, function except timer 1 disabled) Typ. 0.1 A (Ta = 25 C, VCC VDDR VCC-0.6 V, output transistors "off", in STP state, all oscillation stopped) Typ. 0.1 A (Ta = 25 C, VDDR = 1.1 V, 1.8 V VCC 0V) At CPU active At WIT instruction executed At STP instruction executed During reset by voltage drop detection circuit
Power dissipation
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 4 of 59
FUNCTIONAL BLOCK DIAGRAM (Package: PLQP0032GB-A)
VSS VCC VDDR
5 7 6 8 11
7545 Group
Clock input XIN CNVSS
Clock output XOUT
Reset I/O RESET
P4(1)
P3(8)
P2(8)
P0(8)
4
19 18 17 16 15 14 13 12
3 2 1 32 31 30 29 28
27 26 25 24 23 22 21 20
I/O port P4 I/O port P3
I/O port P2
I/O port P0
Key-on wakeup
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
CPU
9
10
Clock generating circuit
RAM ROM
A Prescaler 1 (8) X Y Prescaler 2 (8) S PCH PCL PS Prescaler 3 (8)
Timer 1(8)
Fig. 4 Functional block diagram (PLQP0032GB-A package)
Page 5 of 59
0
Power-on reset circuit
Reset
Voltage drop detection circuit
Reset
Carrier wave generating circuit
Watchdog timer
Reset
0
INT1 INT0
FUNCTIONAL BLOCK DIAGRAM (Package: PLSP0032JB- A)
VSS VCC VDDR
10 11 9 12 15
7545 Group
Clock input XIN CNVSS
Clock output XOUT
Reset I/ O RESET
P4(1)
P3(8)
P2(8)
P0(8)
8
24 22 21 20 19 18 17 16
7 6 5 4 3 2 1 32
31 30 29 28 27 26 25 23
I/ O port P4
I/ O port P3
I/ O port P2
I/ O port P0
Key- on wakeup
INT1 INT0
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
CPU
13
14
Clock generating circuit
RAM ROM
A Prescaler 1 (8) X Y Prescaler 2 (8) S PCH PCL PS Prescaler 3 (8)
Timer 1(8)
Fig. 5 Functional block diagram (PLSP0032JB-A package)
Page 6 of 59
0
Power- on reset circuit
Reset
Volt age drop det ection circuit
Reset
Carrier wave generat ing circuit
Wat chdog t imer
Reset
0
7545 Group
PIN DESCRIPTION Table 3
Pin VCC, VSS VDDR CNVSS RESET
Pin description
Name Power source Power source CNVSS Reset I/O Function * Apply voltage of 1.8 to 3.6V to VCC, and 0 V to VSS. * Power source pin only for RAM2. When this pin is used, connect an approximately 0.1 F bypass capacitor across the VSS line and the VDDR line. When not used, connect it to VSS. * Chip operating mode control pin, which is always connected to Vss. * An N-channel open-drain I/O pin for a system reset. This pin has a pull-up transistor. When the watchdog timer, the built-in power-on reset or the voltage drop detection circuit causes the system to be reset, the RESET pin outputs "L" level. * Input and output pins for main clock generating circuit * Connect a ceramic resonator or quartz-crystal oscillator between the XIN and XOUT pins. * Key-input (key-on wake up interrupt * 8-bit I/O port. input) pins * I/O direction register allows each pin to be individually programmed as either input or output. * CMOS compatible input level * CMOS 3-state output structure * Whether the pull-up function/key-on wakeup function is to be used or not can be determined by program. * 2-bit I/O port having almost the same function as P0. * CMOS compatible input level * The output structure can be switched to N-channel open-drain or CMOS by software. * 8-bit I/O port having almost the same function as P0. * CMOS compatible input level * The output structure can be switched to N-channel open-drain or CMOS by software. * P2 can output a large current for driving LED. * * * * Note: RLSS-only pins Function expect a port function
XIN XOUT P00/KEY0- P07/KEY7
Clock input Clock output I/O port P0
P10, P11
I/O port P1
P20(LED0)/INT0 P21(LED1)/INT1 P22(LED2)- P27(LED7) P30-P37
I/O port P2
* Interrupt input pins
I/O port P3
8-bit I/O port I/O direction register allows each pin to be individually programmed as either input or output. CMOS compatible input level The output structure can be switched to N-channel open-drain or CMOS by software. Note: RLSS-only pins
P40(LED8), P41(LED9) P42/CARR
I/O port P4
* 2-bit I/O port having almost the same function as P0. * CMOS compatible input level * CMOS 3-state output structure * 1-bit I/O port * CMOS compatible input level * CMOS 3-state output structure
* Carrier wave output pin for remotecontrol transmit
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 7 of 59
7545 Group
GROUP EXPANSION We are planning to expand the 7545 group as follow: Memory Type Support for QzROM version and emulator MCU. Memory Size * ROM size ..................................................... 4 K to 60 K bytes * RAM size .......................................................... 256, 512 bytes Packages * PLQP0032GB-A ... 0.8 mm-pitch 32-pin plastic molded LQFP * PLSP0032JB-A ... 0.65 mm-pitch 32-pin plastic molded SSOP * 42S1M ...........................42-pin shrink ceramic PIGGY BACK
**
ROM size (bytes)
**: Under development
60K
M37545GF
**
48K
M37545GC
32K
M37545G8
**
24K
M37545G6
**
16K
** **
M37545G4
**
8K 4K 0
M37545G2 M37545G1
256
512
RAM size (bytes)
Fig. 6 Memory expansion plan Currently supported products are listed below. Table 4 List of supported products
Part number M37545G1KP M37545G2KP M37545G4-XXXGP M37545G4GP M37545G4KP M37545G6-XXXGP M37545G6GP M37545G6KP M37545G8-XXXGP M37545G8GP M37545G8KP M37545GC-XXXGP M37545GCGP M37545GCKP M37545GF-XXXGP M37545GFGP M37545GFKP M37545RLSS ROM size (bytes) ROM size for User ( ) 4096 (3966) 8192 (8062) 16384 (16254) 24576 (24446) 32768 (32638) 49152 (49022) 61440 (61310) RAM size (bytes) 256 Package PLSP0032JB-A PLSP0032JB-A PLQP0032GB-A
PLSP0032JB-A PLQP0032GB-A PLSP0032JB-A PLQP0032GB-A
Remarks QzROM version (blank) QzROM version (blank) QzROM version QzROM version (blank) QzROM version (blank) QzROM version QzROM version (blank) QzROM version (blank) QzROM version QzROM version (blank) QzROM version (blank) QzROM version QzROM version (blank) QzROM version (blank) QzROM version QzROM version (blank) QzROM version (blank) Emulator MCU
512
PLSP0032JB-A PLQP0032GB-A PLSP0032JB-A PLQP0032GB-A PLSP0032JB-A
42S1M
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 8 of 59
7545 Group
FUNCTIONAL DESCRIPTION Central Processing Unit (CPU) The MCU uses the standard 740 family instruction set. Refer to the table of 740 family addressing modes and machine-language instructions or the SERIES 740 USER'S MANUAL for details on each instruction set. Machine-resident 740 family instructions are as follows: 1. The FST and SLW instructions cannot be used. 2. The MUL and DIV instructions can be used. 3. The WIT instruction can be used. 4. The STP instruction can be used. This instruction cannot be used while CPU operates by an onchip oscillator. [Accumulator (A)] The accumulator is an 8-bit register. Data operations such as data transfer, etc., are executed mainly through the accumulator. [Index register X (X), Index register Y (Y)] Both index register X and index register Y are 8-bit registers. In the index addressing modes, the value of the OPERAND is added to the contents of register X or register Y and specifies the real address. When the T flag in the processor status register is set to "1", the value contained in index register X becomes the address for the second OPERAND. [Stack pointer (S)] The stack pointer is an 8-bit register used during subroutine calls and interrupts. The stack is used to store the current address data and processor status when branching to subroutines or interrupt routines. The lower eight bits of the stack address are determined by the contents of the stack pointer. The upper eight bits of the stack address are determined by the Stack Page Selection Bit. If the Stack Page Selection Bit is "0", then the RAM in the zero page is used as the stack area. If the Stack Page Selection Bit is "1", then RAM in page 1 is used as the stack area. The Stack Page Selection Bit is located in the SFR area in the zero page. Note that the initial value of the Stack Page Selection Bit varies with each microcomput er type. Al so some microcomputer types have no Stack Page Selection Bit and the upper eight bits of the stack address are fixed. The operations of pushing register contents onto the stack and popping them from the stack are shown in Figure 8. [Program counter (PC)] The program counter is a 16-bit counter consisting of two 8-bit registers PCH and PCL. It is used to indicate the address of the next instruction to be executed.
b7
b0
A
b7 b0
Accumulator Index Register X
b0
X
b7
Y
b7 b0
Index Register Y Stack Pointer
b0
S
b15 b7
PCH
b7
PCL
b0
Program Counter
N V T B D I Z C Processor Status Register (PS) Carry Flag Zero Flag Interrupt Disable Flag Decimal Mode Flag Break Flag Index X Mode Flag Overflow Flag Negative Flag
Fig. 7 740 Family CPU register structure
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 9 of 59
7545 Group
On-going Routine
Interrupt request (Note) Execute JSR M (S) Store Return Address on Stack (S) M (S) (S) (PCH) (S - 1) (PCL) (S - 1)
M (S) (S) M (S) (S) M (S) (S)
(PCH) (S - 1) (PCL) (S - 1) (PS) (S - 1) Store Contents of Processor Status Register on Stack Store Return Address on Stack
Subroutine Execute RTS Restore Return Address (S) (PCL) (S) (PCH) (S + 1) M (S) (S + 1) M (S)
Interrupt Service Routine
Execute RTI (S) (PS) (S) (PCL) (S) (PCH) (S + 1) M (S) (S + 1) M (S) (S + 1) M (S)
I Flag "0" to "1" Fetch the Jump Vector
Restore Contents of Processor Status Register
Restore Return Address
Note : The condition to enable the interrupt
Interrupt enable bit is "1" Interrupt disable flag is "0"
Fig. 8 Register push and pop at interrupt generation and subroutine call Table 5 Push and pop instructions of accumulator or processor status register Push instruction to stack PHA PHP Pop instruction from stack PLA PLP
Accumulator Processor status register
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 10 of 59
7545 Group
[Processor status register (PS)] The processor status register is an 8-bit register consisting of flags which indicate the status of the processor after an arithmetic operation. Branch operations can be performed by testing the Carry (C) flag, Zero (Z) flag, Overflow (V) flag, or the Negative (N) flag. In decimal mode, the Z, V, N flags are not valid. After reset, the Interrupt disable (I) flag is set to "1", but all other flags are undefined. Since the Index X mode (T) and Decimal mode (D) flags directly affect arithmetic operations, they should be initialized in the beginning of a program. Bit 0: Carry flag (C) The C flag contains a carry or borrow generated by the arithmetic logic unit (ALU) immediately after an arithmetic operation. It can also be changed by a shift or rotate instruction. Bit 1: Zero flag (Z) The Z flag is set if the result of an immediate arithmetic operation or a data transfer is "0", and cleared if the result is anything other than "0". Bit 2: Interrupt disable flag (I) The I flag disables all interrupts except for the interrupt generated by the BRK instruction. Interrupts are disabled when the I flag is "1". When an interrupt occurs, this flag is automatically set to "1" to prevent other interrupts from interfering until the current interrupt is serviced. Decimal correction is automatic in decimal mode. Only the ADC and SBC instructions can be used for decimal arithmetic. Bit 4: Break flag (B) The B flag is used to indicate that the current interrupt was generated by the BRK instruction. The BRK flag in the processor status register is always "0". When the BRK instruction is used to generate an interrupt, the processor status register is pushed onto the stack with the break flag set to "1". The saved processor status is the only place where the break flag is ever set. Bit 5: Index X mode flag (T) When the T flag is "0", arithmetic operations are performed between accumulator and memory. When the T flag is "1", direct arithmetic operations and direct data transfers are enabled between memory locations. Bit 6: Overflow flag (V) The V flag is used during the addition or subtraction of one byte of signed data. It is set if the result exceeds +127 to 128. When the BIT instruction is executed, bit 6 of the memory location operated on by the BIT instruction is stored in the overflow flag. Bit 7: Negative flag (N) The N flag is set if the result of an arithmetic operation or data transfer is negative. When the BIT instruction is executed, bit 7 of the memory location operated on by the BIT instruction is stored in the negative flag.
Bit 3: Decimal mode flag (D) The D flag determines whether additions and subtractions are executed in binary or decimal. Binary arithmetic is executed when this flag is "0"; decimal arithmetic is executed when it is "1". Table 6 Set and clear instructions of each bit of processor status register Set instruction Clear instruction C flag SEC CLC Z flag - - I flag SEI CLI D flag SED CLD B flag - - T flag SET CLT V flag - CLV N flag - -
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 11 of 59
7545 Group
[CPU mode register (CPUM)] The CPU mode register contains the stack page selection bit. This register is allocated at address 003B16. For this product, the clock speed of CPU is always f(XIN)/4.
b7 b0
CPU mode register (CPUM: address 003B initial value: 806) 16, 1 Processor mode bits (Note) b1 b0 0 0 Single-chip mode 01 1 0 Not available 11 Stack page selection bit 0 : 0 page 1 : 1 page
Clock division ratio selection bits b7 b6 0 0 : Not available 0 1 : Not available 1 0 : f(
Note : The bit can be rewritten only once after releasing reset. After rewriting, it is disabled to write any data to this bit. However, by reset the bit is initialized and can be rewritten, again. It is not disabled to write any data to this bit for emulator MCU *gM37545RLSS .*h
Fig. 9 Structure of CPU mode register
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 12 of 59
7545 Group
MEMORY Special Function Register (SFR) Area The SFR area in the zero page contains control registers such as I/O ports and timers. RAM RAM is used for data storage and for a stack area of subroutine calls and interrupts. RAM consists of RAM1 and RAM2. The power source for RAM1 is supplied from VCC pin. The power source for RAM2 is supplied from VDDR pin. Note: When the VDDR pin is used, connect an approximately 0.1 F bypass capacitor across the VSS line and the VDDR line. When not used, connect it to VSS. ROM The first 128 bytes and the last 2 bytes of ROM are reserved for device testing and the rest is a user area for storing programs. Interrupt Vector Area The interrupt vector area contains reset and interrupt vectors. Zero Page The 256 bytes from addresses 000016 to 00FF16 are called the zero page area. The internal RAM and the special function registers(SFR) are allocated to this area. The zero page addressing mode can be used to specify memory and register addresses in the zero page area. Access to this area with only 2 bytes is possible in the zero page addressing mode. Special Page The 256 bytes from addresses FF0016 to FFFF16 are called the special page area. The special page addressing mode can be used to specify memory addresses in the special page area. Access to this area with only 2 bytes is possible in the special page addressing mode. Function Set ROM Area [Renesas shipment test area] Figure 10 shows the Assignment of Function set ROM area. The random data are set to the Renesas shipment test areas (addresses FFD416 to address FFD916). Do not rewrite the data of these areas. When the checksum is included in the user program, avoid assigning it to these areas. [Function set ROM data] FSROM Function set ROM data (address FFDA16) is used to set modes of peripheral functions. By setting this area, the operation mode of each peripheral function are set after system is released from reset. Refer to the descriptions of peripheral functions for the details of operation of peripheral functions. * Watchdog timer * Low voltage detection circuit This mode setting of peripheral functions cannot be changed by program after system is released from reset. ROM Code Protect Address (address FFDB16) Address FFDB16, which is the reserved ROM area of QzROM, is the ROM code protect address. "0016" is written into this address when selecting the protect bit write by using a serial programmer or selecting protect enabled for writing shipment by Renesas Technology corp.. When "0016" is set to the ROM code protect address, the protect function is enabled, so that reading or writing from/to QzROM is disabled by a serial programmer. As for the QzROM product in blank, the ROM code is protected by selecting the protect bit write at ROM writing with a serial programmer. As for the QzROM product shipped after writing, "0016" (protect enabled) or "FF16" (protect disabled) is written into the ROM code protect address when Renesas Technology corp. performs writing. The writing of "0016" or "FF16" can be selected as the ROM option setup (referred to as "Mask option setup" in MM) when ordering. 1. Because the contents of RAM are indefinite at reset, set initial values before using. 2. Do not access to the reserved area. 3. Random data is written into the Renesas shipment test area and the reserved ROM area. Do not rewrite the data in these areas. Data of these area may be changed without notice. Accordingly, do not include these areas into programs such as checksum of all ROM areas. 4. The QzROM values in function set ROM data set the operating modes of the various peripheral functions after an MCU reset is released. Do not fail to set the value for the selected function. Bits designated with a fixed value of 1 or 0 must be set to the designated value. 5. Emulator MCU: As for M37545RLSS, set "010000XX2" to Function set ROM data (address FFDA16). Also, set "FF16" to ROM code protect (address FFDB16).
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 13 of 59
7545 Group
RAM 1 area
RAM capacity (bytes) 240 384 address WWWW 16 012F 16 01BF 16
0000 16 SFR area 0040 16 RAM1
RAM 2 area
RAM capacity (bytes) 16 128 address XXXX 16 01CF 16 023F 16
WWWW 16 01C0 16 XXXX 16
RAM2 Reserved area
ROM area
ROM capacity (bytes) 4096 8192 16384 24576 32768 49152 61440 address YYYY 16 F0006 1 E0006 1 C0006 1 A0006 1 80006 1 40006 1 10006 1 address ZZZZ16 F080 16 E080 16 C080 16 A08016 8080 16 4080 16 1080 16
0440 16 Disable
YYYY 16
Reserved ROM area
(128 bytes)
ZZZZ16 ROM FF00 16
Function set ROM area Address FFD4 Renesas shipment test area 16 FFD5 Reserved ROM area 16 FFD6 Reserved ROM area 16
16 FFD7 Reserved ROM area
ROM
FFD4 Function set ROM area 16 FFDC 16 FFFE 16 FFFF 16 Interrupt vector area Reserved ROM area
FFD8 Reserved ROM area 16 FFD9 Reserved ROM area 16
16 FFDA Function set ROM data
FFDB ROM code protect 16
Fig. 10 Memory map diagram
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 14 of 59
7545 Group
000016 000116 000216 000316 000416 000516 000616 000716 000816 000916 000A16 000B16 000C16 000D16 000E16 000F16 001016 001116 001216 001316 001416 001516 001616 001716 001816 001916 001A16 001B16 001C16 001D16 001E16 001F16
Port P0 (P0) Port P0 direction register (P0D) Port P1 (P1) Port P1 direction register (P1D) Port P2 (P2) Port P2 direction register (P2D) Port P3 (P3) Port P3 direction register (P3D) Port P4 (P4) Port P4 direction register (P4D) Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Pull-up control register (PULL) Port output mode selection register (PMOD) Key-on wakeup pin selection register (KEYSEL) Key-on wakeup edge selection register (KEYEDGE) Reserved Reserved Reserved Reserved Reserved Reserved
002016 002116 002216 002316 002416 002516 002616 002716 002816 002916 002A16 002B16 002C16 002D16 002E16 002F16 003016 003116 003216 003316 003416 003516 003616 003716 003816 003916 003A16 003B16 003C16 003D16 003E16 003F16
Reserved Reserved Reserved Reserved Reserved Reserved Reserved Carrier wave control register (CARCNT) Prescaler 1 (PRE1) Timer 1 (T1) Timer count source set register (TCSS) Timer 1,2,3 control register (TC123) Timer 2 primary (T2P) Timer 2 secondary (T2S) Timer 3 (T3) Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved MISRG Watchdog timer control register (WDTCON) Interrupt edge selection register (INTEDGE) CPU mode register (CPUM) Interrupt request register 1 (IREQ1) Reserved Interrupt control register 1 (ICON1) Reserved
Note : Do not access to the SFR area including nothing.
Fig. 11 Memory map of special function register (SFR)
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 15 of 59
7545 Group
b7
b0
Function set ROM data (FSROM: address FFDA 16) Watchdog timer disable bit 0: Watchdog timer enabled 1: Watchdog timer disabled STP instruction function selection bit 0: Internal reset occurs at the STP instruction execution 1: System enters into the stop mode at the STP instrcution execution MCU package set bit 0: GP package version 1: KP package version Set g0*h to this bit. * Voltage drop detection circuit valid bit 0: Voltage drop detection circuit invalid 1: Voltage drop detection circuit valid Set g0*h to this bit. * Setting the number of pins 0: set g0*h to this bit in GP or KP * package version 1: set g1*h to this bit in the emulator * MCU Set g0*h to this bit. *
Fig. 12 Structure of Function set ROM area
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 16 of 59
7545 Group
I/O PORTS [Direction registers] PiD The I/O ports have direction registers which determine the input/ output direction of each pin. Each bit in a direction register corresponds to one pin, and each pin can be set to be input or output. When "1" is set to the bit corresponding to a pin, this pin becomes an output port. When "0" is set to the bit, the pin becomes an input port. When data is read from a pin set to output, not the value of the pin itself but the value of port latch is read. Pins set to input are floating, and permit reading pin values. If a pin set to input is written to, only the port latch is written to and the pin remains floating. [Pull-up control register] Pull By setting the pull-up control register (address 001616), port P0 can exert pull-up control by program. However, pins set to output are disconnected from this control and cannot exert pullup control. [Port output mode selection register] PMOD By setting the port output mode selection register (address 001716), CMOS output or Nch open-drain can be selected for ports P1, P2, P3 by program.
b7
b0
Pull-up control register (PULL: address 001616, initial value: 0016) Port P00 Port P01 Port P02 Port P03 Port P04 Port P05 Port P06 Port P07 0: Pull-up transistor off 1: Pull-up transistor on
Fig. 13 Structure of pull-up control register
b7
b0
Port output mode selection register (PMOD: address 001716, initial value: 0016) Port P10-P11 Port P20-P23 Port P24-P27 Port P30-P33 Port P34-P37 Disable (returns "0" when read) 0: CMOS output 1: Nch open-drain
Fig. 14 Structure of port output mode selection register Table 7
Pin P00-P07
I/O port function table
Name Port P0 Input/Output I/O format Non-port function Related SFRs
Pull-up control register Key-on wakeup pin selection register Key-on wakeup edge selection register Port output mode selection register Interrupt edge selection register Port output mode selection register Port output mode selection register Port output mode selection register * CMOS compatible input level * CMOS 3-state output RLSS-only pin Carrier wave control register Carrier wave output for remote-control transmitter
Diagram No. (1)
I/O individual * CMOS compatible input Key input interrupt level bits * CMOS 3-state output
P10-P11 P20/INT0 P21/INT1 P22-P27 P30-P37
Port P1 Port P2
* CMOS compatible input level * CMOS 3-state output or N-channel opendrain
RLSS-only pin External interrupt input
(2) (3) (2) (2) (4) (5)
Port P3 Port P4
P40, P41 P42/CARR
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 17 of 59
7545 Group
(1) Ports P00-P07
Pull-up control Direction register
(2) Ports P10-P11, P22-P27, P30-P37
Port output mode switch Direction register
Data bus
Port latch
Data bus
Port latch
To key input interrupt generating circuit
Key-on wakeup pin selection
(3) Ports P20, P21
Port output mode switch Direction register
(4) Ports P40, P41
Direction register
Data bus
Port latch
Data bus
Port latch
To INT0, INT1 interrupt circuit
(5) Port P42
Carrier wave output valid bit Direction register Port latch
Data bus
Carrier wave output
Fig. 15 Block diagram of ports (1)
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 18 of 59
7545 Group
Termination of Unused Pins 1. Termination of common pins I/O ports: Select an input port or an output port and follow each processing method. Output ports: Open. Input ports: If the input level become unstable, through current flow to an input circuit, and the power supply current may increase. Especially, when expecting low consumption current (at STP or WIT instruction execution etc.), pull-up or pull-down input ports to prevent through current (built-in resistor can be used). We recommend processing unused pins through a resistor which can secure IOH(avg) or IOL(avg). Table 8 Termination of unused pins
Pin P00/KEY0-P07/KEY7 P10-P11(RLSS-only pin) P20 (LED0)/INT0 P21 (LED1)/INT1 P22 (LED2)-P27 (LED7) P30-P37 P40 (LED8) (RLSS-only pin) P41 (LED9) (RLSS-only pin) P42/CARR VDDR Connect to VSS. Termination 1 (recommend) I/O port Termination 2 (recommend) When selecting key-on wakeup function, perform termination of input port. When selecting N-channel open-drain for output structure, open. When selecting N-channel open-drain for output structure, connect to VSS through a resistor. Or set its port latch to "0" and open. When selecting N-channel open-drain for output structure, connect to VSS through a resistor. Or set its port latch to "0" and open. When selecting N-channel open-drain for output structure, open. When selecting N-channel open-drain for output structure, open. - - When selecting CARR output function, perform termination of output port. -
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 19 of 59
7545 Group
Interrupts The 7545 group interrupts are vector interrupts with a fixed priority scheme, and generated by 7 sources 3 external, 3 internal, and 1 software. The interrupt sources, vector addresses(1), and interrupt priority are shown in Table 9. Each interrupt except the BRK instruction interrupt has the interrupt request bit and the interrupt enable bit. These bits and the interrupt disable flag (I flag) control the acceptance of interrupt requests. Figure 16 shows an interrupt control diagram. An interrupt requests is accepted when all of the following conditions are satisfied: * Interrupt disable flag ................................ "0" * Interrupt request bit .................................. "1" * Interrupt enable bit ................................... "1" Though the interrupt priority is determined by hardware, priority processing can be performed by software using the above bits and flag. Table 9 Interrupt vector address and priority
Vector addresses(1) Interrupt source Reset (2) Key-on wakeup INT0 INT1 Timer 2 Timer 3 Timer 1 BRK instruction Priority 1 2 3 4 5 6 7 8 Highorder FFFD16 FFFB16 FFF916 FFF716 FFF516 FFF316 FFF116 FFDD16 Loworder FFFC16 FFFA16 FFF816 FFF616 FFF416 FFF216 FFF016 FFDC16 Interrupt request generating conditions At reset input At detection of either rising or falling edge of INT0 input At detection of either rising or falling edge of INT1 input At timer 2 underflow At timer 3 underflow At timer 1 underflow At BRK instruction execution STP release timer underflow Non-maskable software interrupt Remarks Non-maskable External interrupt (active edge selectable) External interrupt (active edge selectable)
AND operation of input logic level of port P0 (input) External interrupt
NOTES:
1. Vector addressed contain interrupt jump destination addresses. 2. Reset function in the same way as an interrupt with the highest priority.
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 20 of 59
7545 Group
Interrupt request bit Interrupt enable bit
Interrupt disable flag I
BRK instruction Reset
Interrupt request
Fig. 16 Interrupt control diagram * Interrupt Disable Flag The interrupt disable flag is assigned to bit 2 of the processor status register. This flag controls the acceptance of all interrupt requests except for the BRK instruction. When this flag is set to "1", the acceptance of interrupt requests is disabled. When it is set to "0", acceptance of interrupt requests is enabled. This flag is set to "1" with the SET instruction and set to "0" with the CLI instruction. When an interrupt request is accepted, the contents of the processor status register are pushed onto the stack while the interrupt disable flag remains set to "0". Subsequently, this flag is automatically set to "1" and multiple interrupts are disabled. To use multiple interrupts, set this flag to "0" with the CLI instruction within the interrupt processing routine. The contents of the processor status register are popped off the stack with the RTI instruction. * Interrupt Request Bits Once an interrupt request is generated, the corresponding interrupt request bit is set to "1" and remains "1" until the request is accepted . Wh en the request is accepted, th is bit is automatically set to "0". Each interrupt request bit can be set to "0", but cannot be set to "1", by software. * Interrupt Enable Bits The interrupt enable bits control the acceptance of the corresponding interrupt requests. When an interrupt enable bit is set to "0", the acceptance of the corresponding interrupt request is disabled. If an interrupt request occurs in this condition, the corresponding interrupt request bit is set to "1", but the interrupt request is not accepted. When an interrupt enable bit is set to "1", acceptance of the corresponding interrupt request is enabled. Each interrupt enable bit can be set to "0" or "1" by software. The interrupt enable bit for an unused interrupt should be set to "0". * Interrupt Edge Selection The valid edge of external interrupt INT0 and INT1 can be selected by the interrupt edge selection register(address003A16), respectively. * Key-on Wakeup Pin Selection By setting the key-on wakeup pin selection register (address 001816), the valid or invalid of key-on wakeup for each pin can be selected. * Key-on Wakeup Edge Selection By setting the key-on wakeup edge selection register (address 001916), the trigger edge of key-on wakeup for each pin can be selected.
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 21 of 59
7545 Group
b7
b0
Interrupt edge selection register (INTEDGE : address 003A16, initial value : 0016) INT0 interrupt edge selection bit 0 : Falling edge active 1 : Rising edge active INT1 interrupt edge selection bit 0 : Falling edge active 1 : Rising edge active Disable (returns "0" when read)
b7
b0 Interrupt request register 1 (IREQ1 : address 003C16, initial value : 0016) Key-on wakeup interrupt request bit INT0 interrupt request bit INT1 interrupt request bit Timer 2 interrupt request bit Timer 3 interrupt request bit Timer 1 interrupt request bit Disable (returns "0" when read) (Do not write "1" to these bits)
b7
b0 Interrupt control register 1 (ICON1 : address 003E16, initial value : 0016) Key-on wakeup interrupt enable bit INT0 interrupt enable bit INT1 interrupt enable bit Timer 2 interrupt enable bit Timer 3 interrupt enable bit Timer 1 interrupt enable bit Disable (returns "0" when read) (Do not write "1" to these bits)
b7
b0
Key-on wakeup pin selection register (KEYSEL: address 001816, initial value: 0016) Port P00 Port P01 Port P02 Port P03 Port P04 Port P05 Port P06 Port P07 0: Key-on wakeup invalid 1: Key-on wakeup valid
b7
b0
Key-on wakeup edge selection register (KEYEDGE: address 001916, initial value: 0016) Port P00 Port P01 Port P02 Port P03 Port P04 Port P05 Port P06 Port P07 0: Falling edge 1: Rising edge
Fig. 17 Structure of interrupt-related registers
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 22 of 59
7545 Group
* Interrupt Request Generation, Acceptance, and Handling Interrupts have the following three phases. (i) Interrupt Request Generation An interrupt request is generated by an interrupt source (external interrupt signal input, timer underflow, etc.) and the corresponding request bit is set to "1". (ii) Interrupt Request Acceptance Based on the interrupt acceptance timing in each instruction cycle, the interrupt control circuit determines acceptance conditions (interrupt request bit, interrupt enable bit, and interrupt disable flag) and interrupt priority levels for accepting interrupt requests. When two or more interrupt requests are generated simultaneously, the highest priority interrupt is accepted. The value of interrupt request bit for an unaccepted interrupt remains the same and acceptance is determined at the next interrupt acceptance timing point. (iii) Handling of Accepted Interrupt Request The accepted interrupt request is processed. Figure 18 shows the time up to execution in the interrupt processing routine, and Figure 19 shows the interrupt sequence. Figure 20 shows the timing of interrupt request generation, interrupt request bit, and interrupt request acceptance. * Interrupt Handling Execution When interrupt handling is executed, the following operations are performed automatically. (1) Once the currently executing instruction is completed, an interrupt request is accepted. (2) The contents of the program counters and the processor status register at this point are pushed onto the stack area in order from 1 to 3. 1. High-order bits of program counter (PCH) 2. Low-order bits of program counter (PCL) 3. Processor status register (PS) (3) Concurrently with the push operation, the jump address of the corresponding interrupt (the start address of the interrupt processing routine) is transferred from the interrupt vector to the program counter. (4) The interrupt request bit for the corresponding interrupt is set to "0". Also, the interrupt disable flag is set to "1" and multiple interrupts are disabled. (5) The interrupt routine is executed. (6) When the RTI instruction is executed, the contents of the registers pushed onto the stack area are popped off in the order from 3 to 1. Then, the routine that was before running interrupt processing resumes. As described above, it is necessary to set the stack pointer and the jump address in the vector area corresponding to each interrupt to execute the interrupt processing routine. The interrupt request bit may be set to "1" in the following cases. * When setting the external interrupt active edge Related registers: Interrupt edge selection register (address 003A16) Key-on wakeup edge selection register (address 001916) If it is not necessary to generate an interrupt synchronized with these settings, take the following sequence. (1) Set the corresponding enable bit to "0" (disabled). (2) Set the interrupt edge selection bit (the active edge switch bit) or the interrupt source bit. (3) Set the corresponding interrupt request bit to "0" after one or more instructions have been executed. (4) Set the corresponding interrupt enable bit to "1" (enabled).
Interrupt request generated
Interrupt request acceptance Interrupt sequence
Interrupt routine starts
Main routine
Stack push and Vector fetch
Interrupt handling routine
* 0 to 16 cycles
7 cycles
7 to 23 cycles * When executing DIV instruction
Fig. 18 Time up to execution in interrupt routine
Push onto stack Vector fetch SYNC RD WR Address bus Data bus PC Not used
S,SPS S-1,SPS S-2,SPS
Execute interrupt routine
BL AL
BH AH
AL,AH
PCH
PCL
PS
SYNC : CPU operation code fetch cycle (This is an internal signal that cannot be observed from the external unit.) BL, BH: Vector address of each interrupt AL, AH: Jump destination address of each interrupt SPS : "0016" or "0116" ([SPS] is a page selected by the stack page selection bit of CPU mode register.)
Fig. 19 Interrupt sequence
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 23 of 59
7545 Group
Instruction cycle Internal clock
Push onto stack Vector fetch
Instruction cycle
SYNC
1
2
T1
IR1 T2
IR2 T3
T1 T2 T3 : Interrupt acceptance timing points IR1 IR2 : Timings points at which the interrupt request bit is set to "1". Note : Period 2 indicates the last cycle during one instruction cycle. (1) The interrupt request bit for an interrupt request generated during period 1 is set to "1" at timing point IR1. (2) The interrupt request bit for an interrupt request generated during period 2 is set to "1" at timing point IR1 or IR2. The timing point at which the bit is set to "1" varies depending on conditions. When two or more interrupt requests are generated during the period 2, each request bit may be set to "1" at timing point IR1 or IR2 separately.
Fig. 20 Timing of interrupt request generation, interrupt request bit, and interrupt acceptance
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 24 of 59
7545 Group
Key Input Interrupt (Key-on Wake-Up) A key-on wake-up interrupt request is generated by applying the level set by KEYEDGE to any pin of port P0 that has been set to input mode and KEYSEL has been valid. In other words, it is generated when the AND of input level goes from "1" to "0" or from "0" to "1".
Port PXx "L" level output PULL register bit 7 = "0" * P07 output Port P07 key-on wakeup selection register Bit 7 PULL register bit 6 = "0" * P06 output Port P06 key-on wakeup selection register Bit 6 PULL register bit 5 = "0" * P05 output Port P05 key-on wakeup selection register Bit 5 PULL register bit 4 = "0" * P04 output Port P04 key-on wakeup selection register Bit 4 PULL register bit 3 = "1" * P03 input Port P03 key-on wakeup selection register Bit 3 PULL register bit 2 = "1" * P02 input Port P02 key-on wakeup selection register Bit 2 PULL register bit 1 = "1" * P01 input Port P01 key-on wakeup selection register Bit 1 PULL register bit 0 = "1" * P00 input Port P00 key-on wakeup selection register Bit 0 ** Port P00 latch ** Port P01 latch
Falling edge detection
An example of using a key input interrupt is shown in Figure 21, where an interrupt request is generated by pressing one of the keys provided as an active-low key matrix which uses ports P00 to P03 as input ports.
Port P07 Direction register = "1" Port P07 latch
Falling edge detection
**
Key input interrupt request
Port P06 Direction register = "1" Port P06 latch
Falling edge detection
**
Port P05 Direction register = "1" Port P05 latch
Falling edge detection
**
Port P04 Direction register = "1" Port P04 latch
Falling edge detection
**
Port P03 Direction register = "0" Port P03 latch
Falling edge detection
Port P0 Input read circuit
**
Port P02 Direction register = "0" Port P02 latch
Falling edge detection
**
Port P01 Direction register = "0"
Port P00 Direction register = "0"
Falling edge detection
* P-channel transistor for pull-up ** CMOS output buffer
Fig. 21 Connection example when using key input interrupt and port P0 block diagram
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 25 of 59
7545 Group
Timers The 7545 Group has 3 timers: timer 1, timer 2 and timer 3. The division ratio of every timer and prescaler is 1/(n+1) provided that the value of the timer latch or prescaler is n. All the timers are down count timers. When a timer reaches "0", a n underfl ow occurs at the next count pulse, and the corresponding timer latch is reloaded into the timer. When a timer underflows, the interrupt request bit corresponding to each timer is set to "1". 1. Timer 1 Timer 1 is an 8-bit timer and counts the prescaler 1 output. When Timer 1 underflows, the timer 1 interrupt request bit is set to "1". Prescaler 1 is an 8-bit prescaler and counts the clock which is f(XIN) divided by 16. Prescaler 1 and Timer 1 have the prescaler 1 latch and the timer 1 latch to retain the reload value, respectively. The value of prescaler 1 latch is set to Prescaler 1 when Prescaler 1 underflows. The value of timer 1 latch is set to Timer 1 when Timer 1 underflows. When writing to Prescaler 1 (PRE1) is executed, the value is written to both the prescaler 1 latch and Prescaler 1. When writing to Timer 1 (T1) is executed, the value is written to both the timer 1 latch and Timer 1. When reading from Prescaler 1 (PRE1) and Timer 1 (T1) is executed, each count value is read out. Timer 1 always operates in the timer mode. Prescaler 1 counts the clock which is f(XIN) divided by 16. Each time the count clock is input, the contents of Prescaler 1 is decremented by 1. When the contents of Prescaler 1 reach "0016", an underflow occurs at the next count clock, and the prescaler 1 latch is reloaded into Prescaler 1 and count continues. The division ratio of Prescaler 1 is 1/(n+1) provided that the value of Prescaler 1 is n. Timer 1 counts the underflow signal of Prescaler 1. The contents of Timer 1 is decremented by 1 each time the count clock is input. When the contents of Timer 1 reach "0016", an underflow occurs at the next count clock, and the timer 1 latch is reloaded into Timer 1 and count continues. The division ratio of Timer 1 is 1/(m+1) provided that the value of Timer 1 is m. Timer 1 is stopped by setting "1" to the timer 1 count stop bit. 2. Timer 2 Timer 2 is an 8-bit timer and counts the clock selected by the timer 2 count source selection bit. When Timer 2 underflows, the timer 2 interrupt request bit is set to "1". Timer 2 has two timer latches (primary latch and secondary latch) to retain the reload value. The value written to timer 2 primary (T2P) while timer 2 is stopped is transferred to the timer 2 primary latch and the counter. The value written to timer 2 secondary (T2S) while timer 2 is stopped is transferred only to timer 2 secondary latch. After the count of timer 2 starts, the values written to timer 2 primary (T2P) and timer 2 secondary (T2S) are transferred only to each latch. The values are not transferred to the counter at write. When each timer underflows, the values of timer 2 primary latch and the timer 2 secondary latch are alternately transferred to the counter. (Since a count value of a timer is retained, the written value becomes the count value of the timer after the next underflow.) When timer 2 primary (T2P) is read, the count value of the timer is read. When timer 2 secondary (T2S) is read, a set value of timer 2 secondary is read. (Read the timer 2 primary to read the count value even during the count period of timer 2 secondary.) When the timer 2 primary is read, the count value of timer 2 is read since the count value of the timer 2 is retained until writing to timer 2 primary (T2P) is performed after timer 2 is stopped. Timer 2 always operates in the timer mode. Timer 2 counts the clock selected by the timer 2 count source selection bit. The contents of Timer 2 is decremented by 1 each time the count clock is input. When the contents of Timer 2 reach "0016", an underflow occurs at the next count clock, and the timer 2 primary latch or timer 2 secondary latch is alternately reloaded into Timer 2 and count continues.
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 26 of 59
7545 Group
3. Timer 3 Timer 3 is an 8-bit timer and counts the clock selected by the timer 3 count source selection bit. When Timer 3 underflows, the timer 3 interrupt request bit is set to "1". Timer 3 has a timer latch to retain the reload value. The value written to timer 3 (T3) while timer 3 is stopped is transferred to the timer latch and the counter. After the count of timer 3 (T3) starts, the value written to timer 3 is transferred only to the timer 3 latch. The value is not transferred to the counter at write. When timer underflows, the value of timer 3 latch is transferred to the counter. (Since a count value of a timer is retained, the written value becomes the count value of the timer after the next underflow.) When timer 3 (T3) is read, the count value of the timer is read. When the timer 3 is read, the count value of timer 3 is read since the count value of the timer 3 is retained until writing to timer 3 (T3) is performed after timer 3 is stopped. Timer 3 always operates in the timer mode. Timer 3 counts the clock selected by the timer 3 count source selection bit. The contents of Timer 3 is decremented by 1 each time the count clock is input. The division ratio of Timer 3 is 1/(n+1) provided that the value of Timer 3 is n. Timer 3 is stopped by setting "1" to the timer 3 count stop bit. Timer 2 and timer 3 are also used for the control timer of the carrier wave control circuit.
b7
b0
Timer count source set register (TCSS : address 002A16, initial value: 0016) Timer 2 count source selection bits b1 b0 0 0 : f(XIN)/16 0 1 : f(XIN)/2 1 0 : f(XIN)/8 1 1 : f(XIN)/1 Timer 3 count source selection bits b3 b2 0 0 : f(XIN)/16 0 1 : f(XIN)/2 1 0 : f(XIN)/8 1 1 : Carrier wave output (CARRY) Disable (return "0" when read)
Fig. 22 Structure of timer count source set register
b7
b0
Timer 1, 2, 3 control register (TC123 : address 002B16, initial value: 0616) Timer 1 count stop bit 0: Count start 1: Count stop Timer 2 count stop bit 0: Count start 1: Count stop Timer 3 count stop bit 0: Count start 1: Count stop Disable (return "0" when read)
Fig. 23 Timer 1, 2, 3 control register
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 27 of 59
7545 Group
.
Data bus
Prescaler 1 latch (8)
Timer 1 latch (8)
f(XIN)/16
Prescaler 1 (8)
Timer 1(8)
Timer 1 interrupt request
Data bus
Timer 2 primary latch (8)
Timer 2 secondary latch (8) Reload control circuit
1/16 1/2 1/8 1/1
"00" "01" "10" "11"
Timer 2(8) Carrier wave "H" interval expansion bit T Q Toggle flip flop R
"0" "1"
Timer 2 interrupt request
Timer 2 count source selection bits
Wave expansion function Timer 2 count value reload bit
Data bus
Timer 3 latch (8) Reload control circuit
1/16 1/2 1/8 "00" "01" "10" "11"
Timer 3(8) Carrier wave output trigger bit T R Software carrier wave output bit Timer 3 count value reload bit Carrier wave output valid bit Carrier wave output level bit
"0" "1" "1" "0"
Timer 3 interrupt request
Timer 3 count source selection bits
Carrier wave auto-output control bit
"1" "0"
Q
Toggle flip flop
Trigger stop
P42/CARR
Fig. 24 Block diagram of timer 1, timer 2, timer 3 and carrier wave generating circuit
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 28 of 59
7545 Group
4. Carrier wave generating circuit The carrier wave generating circuit is used to generate the control wave of the remote control by using timer 2 and timer 3 (Figure 26). In order to use the carrier wave generating function by timer 2, set "1" to the carrier wave output valid bit (bit 1 of the carrier wave control register (address 2716)). Carrier wave "H" duration is set to the timer 2 primary, and carrier wave "L" duration is set to the timer 2 secondary. Timer 2 counts a primary latch and a secondary latch alternately, and controls carrier wave "H" duration and the "L" duration (Figure 27). The "H" duration of the carrier waveform can be expanded for a half clock of timer 2 count source by setting "1" to the carrier wave "H" duration bit (bit 0) (Figure 28). Therefore, the frequency of the carrier wave can be set by the resolution of 1/2 of the timer 2 count source. For example, the carrier wave of the resolution of 125 ns (max.) can be generated at f(XIN) = 4 MHz when f(XIN)/1 is selected for the timer 2 count source. In order to initialize the carrier waveform, write in the timer 2 primary after stopping the count of timer 2, and then, start the count of timer 2 . The output of the carrier waveform is started from a primary period. Output/stop of the carrier waveform can be controlled by software or timer 3 (Figure 31 and Figure 32). The output of the carrier wave is started from the P42/CARR pin when "1" is set to the software carrier wave output bit (bit 2), and the output of the carrier wave is stopped when "0" is written. The auto-output of the carrier wave using timer 3 can be performed by setting "1" to the carrier wave auto-output control bit (bit 3) (Figure 29). Each time timer 3 underflow occurs, the trigger signal which is used to turn the output of the carrier wave on/off is generated. The trigger from timer 3 becomes valid by setting "1" to the carrier wave output trigger bit (bit 4), and the output/stop of the carrier wave from the P42/CARR pin is repeated each time timer 3 underflows. Timer 3 count continues without stopping though the output/stop state of the carrier wave at that time is maintained when "0" is written to the carrier wave auto-output control bit (bit 3) while the output of the carrier wave by timer 3 is controlled. In order to initialize output/stop control of the carrier waveform, write in the timer 3 after stopping the count of timer 3, and then, start the count of timer 3. The output of the carrier waveform is started from "waveform output valid period". 5. 455 kHz carrier wave generating mode The 455 kHz carrier wave generating mode is used to generate artificially the 455 kHz carrier wave by auto-control of the setting value of the timer, or the waveform expansion mode. If "1" (valid) is set to the 455 kHz carrier wave generating mode bit (bit 5), the values of the timer latch and the carrier wave "H" duration expansion bit (bit 0) are automatically set. Then, the nine waveforms of 2.250 s wavelength and the seven waveforms of 2.125 s wavelength are generated periodically as shown in Figure 30. The carrier wave of 455.516 kHz can be pseudo generated since the average wavelength for one period becomes 2.195 s. In order to use 455 kHz carrier wave generating mode, use the 4 MHz oscillator and select f(XIN)/1 for the timer 2 count source.
b7 b0
Carrier wave control register (CARCNT : address 002716, initial value: 0016) Carrier wave "H" duration expansion bit 0: "H" duration expansion function invalid 1: "H" duration expansion function valid Carrier wave output valid bit 0: Carrier wave generating function invalid 1: Carrier wave generating function valid Software carrier wave output bit 0: Output invalid 1: Output valid Carrier wave auto-output control bit 0: Auto-control by timer 3 invalid 1: Auto-control by timer 3 valid Carrier wave output trigger bit 0: Carrier wave output trigger invalid 1: Carrier wave output trigger valid 455 kHz carrier wave generating mode bit 0: 455 kHz carrier wave generating mode invalid 1: 455 kHz carrier wave generating mode valid Carrier wave output level bit 0: Positive waveform 1: Inverted waveform Disable (return "0" when read)
Fig. 25 Carrier wave control register
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 29 of 59
7545 Group
Carrier waveform control by timer 2
Timer 2 count source Timer 2 interrupt Timer 2 count value
04 03 02 01 00 05 04 03 02 01 00 04 03 02 01 00 05 04 03 02 01 00 04 03 02 01 00 05 04 03 02 01 00 04 03 02 01
Primary Carrier waveform
Secondary
Primary
Secondary
Primary
Secondary
Primary
Note: The timing adjustment of the output waveform causes the gap between the timer count value and the output waveform, and the output waveform changes in the reload cycle after the timer underflow. Moreover, the timer interrupt occurs at the change point of the output waveform. (The timing of the interrupt occurrence is behind a half cycle of the count source, compared with timer 1. )
P42/CARR pin output
Carrier waveform control by timer 3
Timer 3 count source (carrier wave output selected) Timer 3 interrupt Timer 3 count value
05 04 03 02 01 00 05 04 03 02 01 00 05 04 03 02 01 00 05 04 03 02 01 00 05 04 03 02 01 00 05 04 03 02 01 00 05
Count period Carrier waveform Note: The timing adjustment of the output waveform causes the gap between the timer count value and the output waveform, and the output waveform changes in the reload cycle after the timer underflow. Moreover, the timer interrupt occurs at the change point of the output waveform. (The timing of the interrupt occurrence is behind a half cycle of the count source, compared with timer 1. )
Fig. 26 Operating waveform diagram of carrier wave generating circuit
Timer 2 count source Timer 2 interrupt Timer 2 count value
04 03 02 01 00 05 04 03 02 01 00 05 04 03 02 01 00 04 03 02 01 00 05 04 03 02 01 00 04 03 02 01 00 05 04 03 02 01
Primary
Secondary
Primary
Secondary
Primary
Secondary
Primary
Carrier waveform Writing to timer 2 primary in this duration Count value of primary side is changed
Writing to timer 2 secondary in this duration
Count value of secondary side is changed
Fig. 27 Control waveform diagram of carrier wave by timer 2
Timer 2 count source Timer 2 interrupt Timer 2 count value
03 02 01 00 04 03 02 01 00 03 02 01 00 04 03 02 01 00
Primary Carrier waveform
Secondary
Primary
Secondary
Expansion duration for half-clock Carrier wave "H" duration expansion = invalid Carrier wave "H" duration expansion = valid
Fig. 28 Waveform diagram of carrier wave in "H" duration expansion mode
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 30 of 59
7545 Group
Timer 3 count source (carrier wave output selected) Timer 3 interrupt Timer 3 count value
06 05 04 03 02 01 00 03 02 01 00 03 02 01 00 03 02 01 00 03 02 01 00 03 02 01 00 03 02 01 00 03 02 01 00 03 02 01
Count period
P42/CARR pin output
Writing to timer 3 in this duration Count value of next period is changed Successive carrier waveform is not generated in this duration. Generating carrier waveform or not is controlled by setting carrier waveform output trigger bit.
Carrier waveform output trigger bit
Fig. 29 Control waveform diagram of CARR output by timer 3
2.125 s waveform duration (7 waveforms) Waveform period in 455 kHz carrier waveform generating mode 2.250 s X 9 waveforms + 2.125 s X 7 waveforms Carrier waveform 35.125 s (16 waveforms), Average waveform = 2.195 s (Frequency = 455.516 kHz) Waveform length: 2.250 s-waveform
Timer 2 count source Carrier waveform
Waveform length: 2.125 s-waveform
Timer 2 count source Carrier waveform
5-clock
4-clock
4.5-clock
4-clock
2.250 s
2.125 s
Fig. 30 Waveform diagram in 455 kHz carrier wave generating mode
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 31 of 59
7545 Group
Start (initial state after reset)
X: Set it to "0" or "1" arbitrary.
1
b7
b0
6
Timer 1, 2, 3 control register TC123 (2B16)
b7
b0
0000011X
0 0 0 0 1 1XX
Timer count source set register TCSS (2A16)
Set "1" to bit 1 and bit 2 to stop counting of timer 2 and timer 3.
Select carrier waveform output for timer 3 count source by bit 2 and bit 3.
2
b7
b0
7
Timer count source set register TCSS (2A16)
b7
b0
0 0 0 0XXXX
0000000X
Timer 1, 2, 3 control register TC123 (2B16)
Set timer 2 count source to bit 0 and bit 1. Also, in order to initialize carrier waveform circuit, be sure to select f(XIN)/16, f(XIN)/2 or f(XIN)/8 for timer 3 count source. Do not select carrier waveform output (b3b2=112) for timer 3 count source.
Set "0" to bit 1 and bit 2 to start counting of timer 2 and timer 3.
Waveform output of remote-control
8 3
b7 b0
b7
b0
0XXX 1 0 1X
Carrier wave control register, CARCNT (2716)
Carrier wave control register, CARCNT (2716)
0XXX 1 0 1X
Set carrier wave control register. bit 0: Set whether to expand waveform. bit 1: Select "1: Carrier waveform generating function is valid" bit 2: Select "0: Software output is invalid" bit 3: Select "1: auto-control by timer 3 is valid. bit 4: Select whether carrier waveform output trigger is valid or invalid. bit 5: Select whether 455 kHz carrier wave generating mode is valid or invalid. bit 6: Set output level of waveform. bit 7: Set this bit to "0".
During waveform output of remote-control, whether to output waveform or not can be controlled by "bit 4: carrier waveform output trigger bit". (Refer to Figure below.)
9
b7
b0
0XX 0 1 0 1X
Carrier wave control register, CARCNT (2716)
When waveform output is stopped, set "0" to "bit 4: Carrier waveform output trigger bit" while carrier waveform output is set to be invalid.
4
b7
b0
10
Timer 2 primary T2P (2C16)
b7
b0
XXXXXXXX
b7 b0
0000011X
Timer 1, 2, 3 control register TC123 (2B16)
Set "1" to bit 1 and bit 2 to stop counting of timer 2 and timer 3. Timer 2 secondary T2S (2D16)
XXXXXXXX
Set carrier wave "H", "L" duration to timer 2 primary and timer 2 secondary, respectively.(when 455 kHz carrier waveform generating mode is used, this setting is not necessary.)
11
When the carrier wave output circuit operation is started again, execute the setting from the processing No.2.
5
b7
b0
12
Timer 3 T3 (2E16)
b7
b0
XXXXXXXX
0XX 0 0 0 0X
Carrier wave control register, CARCNT (2716)
Set valid period/invalid period of carrier waveform output to timer 3.
In order to change the carrier wave control from the auto-control by timer 3 to software carrier wave output, initialize the carrier wave circuit by setting "0" to "bit 1: carrier wave output valid bit".
Waveform output timing of remote-control waveform by carrier waveform output trigger bit
Carrier waveform (Timer 2 output) Timer 3 count value Timer 3 underflow Carrier wave output trigger bit
04 03 02 01 00 04 03 02 01 00 04 03 02 01 00 04 03 02 01 00 04 03 02 01 00 04 03 02 01 00 04 03 02 01 00
Output valid P42/CARR pin output
Output valid Output invalid Trigger invalid (Successive output invalid duration)
Trigger invalid (Successive output valid duration)
Fig. 31 Setting of carrier wave auto-control by timer 3
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 32 of 59
7545 Group
Start (initial state after reset)
X: Set it to "0" or "1" arbitrary.
1
b7
b0
5
b7
b0
0 0 0 0 0 X 1 X Timer 1, 2, 3 control register TC123 (2B16)
Set "1" to bit 1 to stop counting of timer 2.
00000X0X
Timer 1, 2, 3 control register TC123 (2B16)
Set "0" to bit 1 to start counting of timer 2.
Waveform output of remote-control
2
b7
b0
0 0 0 0XXXX
Timer count source set register TCSS (2A16)
6
b7
b0
0XX 0 0X 1X
Carrier wave control register, CARCNT (2716)
Set timer 2 count source to bit 0 and bit 1. Also, in order to initialize carrier waveform circuit, be sure to select f(XIN)/16, f(XIN)/2 or f(XIN)/8 for timer 3 count source. Do not select carrier waveform output (b3b2=112) for timer 3 count source.
Generating waveform or not can be controlled by bit 2: Software carrier waveform output bit
3
7
b7 b0
b7
b0
0XX 0 0 0 1X
0XX 0 0 0 1X
Carrier wave control register, CARCNT (2716)
Carrier wave control register, CARCNT (2716)
Set carrier wave control register. bit 0: Set whether to expand waveform. bit 1: Select "1: Carrier waveform generating function is valid" bit 2: Select "0: Software output is invalid" bit 3: Select "0: auto-control by timer 3 is invalid. bit 4: Select "0: carrier waveform output trigger is invalid" bit 5: Select whether 455 kHz carrier waveform generating mode is valid or invalid. bit 6: Set output level of waveform. bit 7: Set this bit to "0".
In order to stop carrier waveform, set bit 2: Software carrier waveform output bit to "0: Output invalid".
8
b7
b0
00000X1X
Timer 1, 2, 3 control register TC123 (2B16)
Set "1" to bit 1 to stop counting of timer 2.
4
9
b7 b0
When the carrier wave output circuit operation is started again, execute the setting from the processing No.4 .
XXXXXXXX
b7 b0
Timer 2 primary T2P (2C16)
XXXXXXXX
Timer 2 secondary T2S (2D16)
10
b7
b0
Set carrier wave "H", "L" duration to timer 2 primary and timer 2 secondary, respectively. (when 455 kHz carrier waveform generating mode is used, this setting is not necessary.)
0XX 0 0 0 0X
Carrier wave control register, CARCNT (2716)
In order to change the carrier wave control from the auto-control by timer 3 to software carrier wave output, initialize the carrier wave circuit by setting "0" to "bit 1: carrier wave output valid bit".
Waveform output timing of remote-control waveform by software carrier waveform output bit
Carrier waveform (Timer 2 output) Software carrier wave output bit P42/CARR pin output
Fig. 32 Setting of carrier wave control by software
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 33 of 59
7545 Group
Watchdog Timer The watchdog timer gives a means for returning to a reset status when the program fails to run on its normal loop due to a runaway. The watchdog timer consists of an 8-bit watchdog timer H and an 8-bit watchdog timer L, being a 16-bit counter. 1. Standard operation of watchdog timer The watchdog timer is valid by setting "0" to bit 0 of the Function set ROM data (address FFDA16) of the built-in QzROM. When an internal clock is supplied after waiting the oscillation stabilizing time by timer 1 after system is released from reset, the watchdog timer starts operation. When the watchdog timer H underflows, an internal reset occurs. Accordingly, it is programmed that the watchdog timer control register (address 003916) can be set before an underflow occurs. When the watchdog timer control register (address 003916) is read, the values of the high-order 6-bit of the watchdog timer H and watchdog timer H count source selection bit are read. 2. Initial value of watchdog timer By a reset or writing to the watchdog timer control register (address 003916), the watchdog timer H is set to "FF16" and the watchdog timer L is set to "FF16". 3. Operation of watchdog timer H count source selection bit A watchdog timer H count source can be selected by bit 7 of the watchdog timer control register (address 003916). When this bit is "0", the count source becomes a watchdog timer L underflow signal. The detection time is 262.144 ms at f(XIN) = 4 MHz. When this bit is "1", the count source becomes f(XIN)/16. In this case, the detection time is 1024 s at f(XIN) = 4 MHz. This bit is cleared to "0" after reset. 4. STP instruction function selection bit The function of the STP instruction can be selected by the bit 1 in FSROM. This bit cannot be used for rewriting by executing the STP instruction. * When this bit is set to "0", internal reset occurs by executing the STP instruction. * When this bit is set to "1", stop mode is entered by executing the STP instruction. 1. The watchdog timer is operating during the wait mode. Write data to the watchdog timer control register to prevent timer underflow. 2. The watchdog timer stops during the stop mode. However, the watchdog timer is running during the oscillation stabilizing time after the STP instruction is released. In order to avoid the underflow of the watchdog timer, the watchdog timer H count source selection bit (bit 7 of watchdog timer control register (address 003916)) must be set to "0" just before executing the STP instruction.
b7
b0
Watchdog timer control register (WDTCON: address 003916, initial value: 3F16) Watchdog timer H (read only for high-order 6-bit)
Disable (returns "0" when read) Watchdog timer H count source selection bit 0 : Watchdog timer L underflow 1 : f(XIN)/16
Fig. 33 Structure of watchdog timer control register
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 34 of 59
7545 Group
f(XIN) RESET f(XIN) 16384 pulses Internal reset signal CPU clock SYNC Address Data
? ?
? ?
? ?
? ?
FFFC ADL
FFFD
ADH, ADL ADH
Fig. 34 Timing diagram at reset
Write "FF16" to the watchdog timer control register
Watchdog timer L(8) XIN
Write "FF16" to the watchdog timer control register
"0" "1"
1/16
Watchdog timer H(8)
Watchdog timer H count source selection bit
Count start (Watchdog timer disable bit (bit 0 of FSROM)
Voltage drop detection circuit Power-on reset circuit
STP instuction function selection bit STP instruction
Reset circuit
Internal reset
RESET
Fig. 35 Block diagram of watchdog timer and reset circuit
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 35 of 59
7545 Group
Power-on Reset Circuit Reset can be automatically performed at power on (power-on reset) by the built-in power-on reset circuit. In order to use the power-on reset circuit effectively, the time for the supply voltage to rise from 0 V to 1.8 V must be set to 1 ms or less. Voltage Drop Detection Circuit The built-in voltage drop detection circuit is designed to detect a drop in voltage and to reset the microcomputer if the supply voltage drops below a set value (Typ.1.75 V). When the STP instruction is executed, the voltage drop detection circuit is stopped, so that the power dissipation is reduced. The operation of the voltage drop detection circuit is disabled by setting "0" to bit 4 of the Function set ROM data (address FFDA16) of the built-in QzROM. Note: The emulator MCU "M37545RLSS" is not equipped with the voltage drop detection circuit. RESETOUT Output RESETOUT function is used to output "L" level from RESET pin when system reset occurs by the power-on reset, the voltage drop detection circuit or the watchdog timer. Also, the built-in pull-up transistor is connected to the RESET pin.
1 ms or les s
VCC (Note)
Power-on reset circuit output
Internal reset signal
Reset state Power-on Reset released
Note: Keep the value of supply voltage to the minimum value or more of the recommended operating conditions.
Fig. 36 Operation waveform diagram of power-on reset circuit
Vcc Reset voltage (Typ:1.75V)
Internal reset signal
Microcomputer starts operation after f(XIN) clock is counted 16384 times. Note: The voltage drop detection circuit does not have the hysteresis characteristics in the detected voltage.
Fig. 37 Operation waveform diagram of voltage drop detection circuit The voltage drop detection circuit detection voltage of this product is set up lower than the minimum value of the supply voltage of the recommended operating conditions. When the supply voltage of a microcomputer falls below to the minimum value of recommended operating conditions and regoes up (ex. battery exchange of an application product), depending on the capacity value of the bypass capacitor added to the power supply pin, the following case may cause program failure ; supply voltage does not fall below to VDET, and its voltage regoes up with no reset. In such a case, please design a system which supply voltage is once reduced below to VDET and re-goes up after that.
Vcc Recommended operating condition min. value VDET No reset Program failure may occur. Vcc Recommended operating condition min. value VDET Reset Normal operation
Fig. 38 VCC and VDET
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 36 of 59
7545 Group
MISRG The 7545 Group has two power source supply pins. One is the VCC pin, and the other is the VDDR pin only for RAM2. A potential difference between VCC and VDDR may cause some failures in reading from RAM2 or writing to RAM2. Accordingly, if there is a potential difference between VCC and VDDR at power-on, confirm the bit 1 (RAM2 status flag) of MISRG (address 003816) before reading from RAM2 or writing to RAM2.
b7
b0
MISRG(address 003816, initial value: 0X16) Oscillation stabilization time set bit after release of the STP instruction 0: Set "0316" in timer1, and "FF16" in prescaler 1 automatically 1: Not set automatically RAM2 status flag 0: RW disabled 1: RW enabled Reserved bits (Do not write "1" to these bits)
Fig. 39 Structure of MISRG
Address (1) Port P0 direction register (P0D) (2) Port P1 direction register (P1D) (3) Port P2 direction register (P2D) (4) Port P3 direction register (P3D) (5) Port P4 direction register (P4D) (6) Pull-up control register (PULL) (7) Port output mode switch register (PMOD) (8) Key-on wakeup pin selection register (KEYSEL) (9) Key-on wakeup edge selection register (KEYEDGE) (10) Carrier wave control register (CARCNT) (11) Prescaler 1 (PRE1) (12) Timer 1 (T1) (13) Timer count source set register (TCSS) (14) Timer 1, 2, 3 control register (TC123) (15) Timer 2 primary (T2P) (16)(Timer 2 secondary (T2S) 17) Timer 3 (T3) (18) MISRG (19) Watchdog timer control register (WDTCON) (20) Interrupt edge selection register (INTEDGE) (21) CPU mode register (CPUM) (22) Interrupt request register 1 (IREQ1) (23) Interrupt control register 1 (ICON1) (24) Processor status register (25) Program counter X : Undefined 000116 000316 X 000516 000716 000916 X 001616 001716 001816 001916 002716 002816 002916 002A16 002B16 002C16 002D16 002E16 003816 0 003916 0 003A16 0 003B16 1 003C16 003E16 (PS) (PCH) (PCL) X X 0 0 0 0 X X
Register contents 0016 X X X X 0 0
0016 0016 X X X 0 0 0
0016 0016 0016 0016 0016 FF16 0316 0016 0616 FF16 FF16 FF16 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 X 1 0 0 0 1 0 0
0016 0016 X X X 1 X X
Contents of address FFFD16 Contents of address FFFC16
The content of other registers and RAM are undefined when the microcomputer is reset. The initial values must be surely set before you use it.
Fig. 40 Internal status of microcomputer at reset
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 37 of 59
7545 Group
CLOCK GENERATING CIRCUIT An oscillation circuit can be formed by connecting a resonator between XIN and XOUT. Use the circuit constants in accordance with the resonator manufacturer's recommended values. No external resistor is needed between XIN and XOUT since a feed-back resistor exists on-chip. (An external feed-back resistor may be needed depending on conditions.) When the ceramic resonator/quartz-crystal oscillator is used for the main clock, connect the ceramic resonator/quartz-crystal oscillator and the external circuit to pins XIN and XOUT at the shortest distance. A feedback resistor is built in between pins XIN and XOUT. (An external feed-back resistor may be needed depending on conditions.) Oscillation Control 1. Stop mode When the STP instruction is executed, the internal clock stops at an "H" level and the XIN oscillator stops. At this time, timer 1 is set to "0316" and prescaler 1 is set to "FF16"when the oscillation stabilization time set bit after release of the STP instruction is "0". On the other hand, timer 1 and prescaler 1 are not set when the above bit is "1". Accordingly, set the wait time fit for the oscillation stabilization time of the oscillator to be used. When an external interrupt is accepted, oscillation is restarted but the internal clock remains at "H" until timer 1 underflows. As soon as timer 1 underflows, the internal clock is supplied. This is because when a ceramic resonator is used, some time is required until a start of oscillation. In the stop mode, the voltage drop detection circuit is stopped, so that the power dissipation is reduced. 2. Wait mode If the WIT instruction is executed, the internal clock stops at an "H" level, but the oscillator does not stop. The internal clock restarts if a reset occurs or when an interrupt is accepted. Since the oscillator does not stop, normal operation can be started immediately after the clock is restarted. To ensure that an interrupt will be accepted to release the STP or WIT state, the corresponding interrupt enable bit must be set to "1" before the STP or WIT instruction is executed.
Note: Insert a damping resistor if required. The resistance will vary depending on the oscillator and the oscillation drive capacity setting. Use the value recommended by the maker of the oscillator. Also, if the oscillator manufacturer's data sheet specifies that a feedback resistor be added external to the chip though a feedback resistor exists on-chip, insert a feedback resistor between XIN and XOUT following the instruction.
M37545
XIN
XOUT Rd
CIN
COUT
Fig. 41 External circuit of ceramic resonator/quartz-crystal oscillator
b7
b0
CPU mode register (CPUM: address 003B initial value: 806) 16, 1 Processor mode bits (Note) b1 b0 0 0 Single-chip mode 01 1 0 Not available 11 Stack page selection bit 0 : 0 page 1 : 1 page
Clock division ratio selection bits b7 b6 0 0 : Not available 0 1 : Not available 1 0 : f(
Note : The bit can be rewritten only once after releasing reset. After rewriting, it is disabled to write any data to this bit. However, by reset the bit is initialized and can be rewritten, again. It is not disabled to write any data to this bit for emulator MCU *gM37545RLSS .*h
Fig. 42 Structure of CPU mode register
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 38 of 59
7545 Group
XIN Rf
XOUT
1/2
1/2
1/4
Prescaler 1
Timer 1
Timing (Internal clock)
QS R STP instruction WIT instruction
S R
Q
Q
S R STP instruction
Reset
Reset Interrupt disable flag I Interrupt request Note: Although a feed-back resistor exists on-chip, an external feed-back resistor may be needed depending on conditions.
Fig. 43 Block diagram of system clock generating circuit (for ceramic resonator)
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 39 of 59
7545 Group
QzROM Writing Mode In the QzROM writing mode, the user ROM area can be rewritten while the microcomputer is mounted on-board by using a serial programmer which is applicable for this microcomputer. Table 10 lists the pin description (QzROM writing mode) and Figure 44 and Figure 45 show the pin connections. Refer to Figure 46 and Figure 47 for examples of a connection with a serial programmer. Contact the manufacturer of your serial programmer for serial programmer. Refer to the user 's manual of your serial programmer for details on how to use it.
Table 10 Pin description (QzROM writing mode)
Pin VCC, VSS, VDDR RESET XIN XOUT P00-P05 P21-P27 P30-P37 P42 CNVSS P07 P20 P06 Name Power source Reset input Clock input Clock output I/O port I/O Input Input Input Output I/O * Input "H" or "L" level signal or leave the pin open. Function * Apply 1.8 to 3.6 V to VCC, and 0 V to VSS and VDDR. * Reset input pin for active "L". Reset occurs when RESET pin is hold at an "L"level for 16 cycles or more of XIN. * Set the same termination as the single-chip mode.
VPP input ESDA input/output ESCLK input ESPGMB input
Input I/O Input Input
* QzROM programmable power source pin. * Serial data I/O pin. * Serial clock input pin. * Read/program pulse input pin.
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 40 of 59
7545 Group
24 23 22 21 20 19 18 17
P04/KEY4 P03/KEY3 P02/KEY2 P01/KEY1 P00/KEY0 P37 P36 P35
ESPGMB ESCLK
32 1 2 3 4 5 6 7 8
9
P25(LED5) P26(LED6) P27(LED7) P42/CARR VDDR
RESET CNVSS VCC
VCC VPP RESET
VSS
*
: Connect to oscillation circuit : QzROM pin
Package type: PLQP0032GB-A (32P6U-A)
Fig. 44 Pin connection diagram (M37545Gx-XXXGP)
RESET VSS VPP *
P21(LED1)/INT1 P22(LED2) P23(LED3) P24(LED4) P25(LED5) P26(LED6) P27(LED7) P42/CARR RESET VDDR CNVSS VCC VCC XIN XOUT VSS P30
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17
P20(LED0)/INT0 P07/KEY7 ESDA P06/KEY6 P05/KEY5 P04/KEY4 P03/KEY3 P02/KEY2 P01/KEY1 P37 P00/KEY0 P36 P35 P34 P33 P32 P31
*
: Connect to oscillation circuit : QzROM pin
Package type: PLSP0032JB-A
Fig. 45 Pin connection diagram (M37545GxKP)
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 41 of 59
*
P05/KEY5 P06/KEY6 ESDA P07/KEY7 P20(LED0)/INT0 P21(LED1)/INT1 P22(LED2) P23(LED3) P24(LED4)
25 26 27 28 29 30 31
16 15 14
M37545Gx-XXXGP M37545GxGP
13 12 11 10
P34 P33 P32 P31 P30 VSS XOUT XIN
ESCLK ESPGMB
M37545GxKP
7545 Group
7545 Group
Vcc Vcc
CNVSS 4.7 k 4.7 k P07 (ESDA) P20 (ESCLK)
14 12 10 8 6 4 2
13 11 9 7 5 3 1
RESET circuit
*1
P06 (ESPGMB)
RESET
Vss XIN XOUT
*1: Open-collector buffer
Fig. 46 When using E8 programmer, connection example
Set the same termination as the single-chip mode.
Note: For the programming circuit, the wiring capacity of each signal pin must not exceed 47 pF.
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 42 of 59
7545 Group
7545 Group
T_VDD
Vcc
T_VPP
4.7 k
CNVSS
T_TXD T_RXD T_SCLK T_BUSY T_PGM/OE/MD RESET circuit T_RESET GND N.C.
4.7 k P07 (ESDA) P20 (ESCLK)
P06 (ESPGMB)
RESET
Vss XIN XOUT
Set the same termination as the single-chip mode. Note: For the programming circuit, the wiring capacity of each signal pin must not exceed 47 pF.
Fig. 47 When using programmer of Suisei Electronics System Co., LTD, connection example
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 43 of 59
7545 Group
NOTES ON PROGRAMMING Processor Status Register The contents of the processor status register (PS) after reset are undefined except for the interrupt disable flag I which is "1". After reset, initialize flags which affect program execution. In particular, it is essential to initialize the T flag and the D flag because of their effect on calculations. Interrupts The contents of the interrupt request bit do not change even if the BBC or BBS instruction is executed immediately after they are changed by program because this instruction is executed for the previous contents. For executing the instruction for the changed contents, execute one instruction before executing the BBC or BBS instruction. Decimal Calculations * For calculations in decimal notation, set the decimal mode flag D to "1", then execute the ADC instruction or SBC instruction. In this case, execute SEC instruction, CLC instruction or CLD instruction after executing one instruction before the ADC instruction or SBC instruction. * In the decimal mode, the values of the N (negative), V (overflow) and Z (zero) flags are invalid. Ports The values of the port direction registers cannot be read. That is, it is impossible to use the LDA instruction, memory operation instruction when the T flag is "1", addressing mode using direction register values as qualifiers, and bit test instructions such as BBC and BBS. It is also impossible to use bit operation instructions such as CLB and SEB and read/modify/write instructions of direction registers for calculations such as ROR. For setting direction registers, use the LDM instruction, STA instruction, etc. Instruction Execution Timing The instruction execution time can be obtained by multiplying the frequency of the internal clock by the number of cycles mentioned in the machine-language instruction table. The frequency of the internal clock is 4 times the XIN cycle. CPU Mode Register The processor mode bits can be rewritten only once after releasing reset. However, after rewriting it is disable to write any value to the bit. (Emulator MCU is excluded.) NOTES ON HARDWARE Handling of Power Source Pin In order to avoid a latch-up occurrence, connect a capacitor suitable for high frequencies as bypass capacitor between power source pin (VCC pin) and GND pin (VSS pin). Besides, connect the capacitor to as close as possible. For bypass capacitor which should not be located too far from the pins to be connected, a ceramic capacitor of 0.01 F to 0.1 F is recommended.
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 44 of 59
7545 Group
NOTES ON USE Countermeasures Against Noise 1. Shortest wiring length (1) Package Select the smallest possible package to make the total wiring length short. The wiring length depends on a microcomputer package. Use of a small package, for example QFP and not DIP, makes the total wiring length short to reduce influence of noise. (3) Wiring for clock input/output pins * Make the length of wiring which is connected to clock I/O pins as short as possible. * Make the length of wiring (within 20 mm) across the grounding lead of a capacitor which is connected to an oscillator and the VSS pin of a microcomputer as short as possible. * Separate the VSS pattern only for oscillation from other VSS patterns. If noise enters clock I/O pins, clock waveforms may be deformed. This may cause a program failure or program runaway. Also, if a potential difference is caused by the noise between the VSS level of a microcomputer and the VSS level of an oscillator, the correct clock will not be input in the microcomputer.
DIP SDIP SOP QFP
Noise
Fig. 48 Selection of packages
(2) Wiring for RESET pin Make the length of wiring which is connected to the RESET pin as short as possible. Especially, connect a capacitor across the RESET pin and the VSS pin with the shortest possible wiring (within 20mm). The width of a pulse input into the RESET pin is determined by the timing necessary conditions. If noise having a shorter pulse width than the standard is input to the RESET pin, the reset is released before the internal state of the microcomputer is completely initialized. This may cause a program runaway.
XIN XOUT VSS
N.G.
XIN XOUT VSS
O.K.
Fig. 50 Wiring for clock I/O pins
(4) Wiring to CNVSS pin Connect CNVSS pin to a GND pattern at the shortest distance. The GND pattern is required to be as close as possible to the GND supplied to VSS. In order to improve the noise reduction, to connect a 5 k resistor serially to the CNVSS pin - GND line may be valid. As well as the above-mentioned, in this case, connect to a GND pattern at the shortest distance. The GND pattern is required to be as close as possible to the GND supplied to VSS. The CNVSS pin of the QzROM is the power source input pin for the built-in QzROM. When programming in the built-in QzROM, the impedance of the CNVSS pin is low to allow the electric current for writing flow into the QzROM. Because of this, noise can enter easily. If noise enters the CNVSS pin, abnormal instruction codes or data are read from the built-in QzROM, which may cause a program runaway.
Noise
Reset circuit VSS
N.G.
RESET VSS
Reset circuit VSS
RESET
(Note)
The shortest
VSS
CNVSS/VPP About 5k VSS
(Note)
O.K.
Fig. 49 Wiring for the RESET pin
The shortest
Note: This indicates pin.
Fig. 51 Wiring for the VPP pin of the QzPROM
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 45 of 59
7545 Group
2. Connection of bypass capacitor (1) Connection of bypass capacitor across VSS line and VCC line Connect an approximately 0.1 F bypass capacitor across the VSS line and the VCC line as follows: * Connect a bypass capacitor across the VSS pin and the VCC pin at equal length. * Connect a bypass capacitor across the VSS pin and the VCC pin with the shortest possible wiring. * Use lines with a larger diameter than other signal lines for VSS line and VCC line. * Connect the power source wiring via a bypass capacitor to the VSS pin and the VCC pin. (2) Connection of bypass capacitor across VSS line and VDDR line Connect an approximately 0.1 F bypass capacitor across the VSS line and the VDDR line as follows: * Connect a bypass capacitor across the VSS pin and the VDDR pin at equal length. * Connect a bypass capacitor across the VSS pin and the VDDR pin with the shortest possible wiring. * Use lines with a larger diameter than other signal lines for VSS line and VDDR line. * Connect the power source wiring via a bypass capacitor to the VSS pin and the VDDR pin.
VDDR
VDDR
VCC
VCC
VSS
VSS
VSS
VSS
N.G.
O.K.
N.G.
O.K.
Fig. 52 Bypass capacitor across the VSS line and the VCC line
Fig. 53 Bypass capacitor across the VSS line and the VDDR line
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 46 of 59
7545 Group
3. Oscillator concerns So that the product obtains the stabilized operation clock on the user system and its condition, contact the resonator manufacturer and select the resonator and oscillation circuit constants. Be careful especially when range of voltage and temperature is wide. Take care to prevent an oscillator that generates clocks for a microcomputer operation from being affected by other signals. (1) Keeping oscillator away from large current signal lines Install a microcomputer (and especially an oscillator) as far as possible from signal lines where a current larger than the tolerance of current value flows. In the system using a microcomputer, there are signal lines for controlling motors, LEDs, and thermal heads or others. When a large current flows through those signal lines, strong noise occurs because of mutual inductance. (2) Installing oscillator away from signal lines where potential levels change frequently Install an oscillator and a connecting pattern of an oscillator away from signal lines where potential levels change frequently. Also, do not cross such signal lines over the clock lines or the signal lines which are sensitive to noise. Signal lines where potential levels change frequently (such as the CARR pin signal line) may affect other lines at signal rising edge or falling edge. If such lines cross over a clock line, clock waveforms may be deformed, which causes a microcomputer failure or a program runaway. (3) Oscillator protection using VSS pattern As for a two-sided printed circuit board, print a VSS pattern on the underside (soldering side) of the position (on the component side) where an oscillator is mounted. Connect the VSS pattern to the microcomputer VSS pin with the shortest possible wiring. Besides, separate this VSS pattern from other VSS patterns.
An example of VSS patterns on the underside of a printed circuit board Oscillator wiring pattern example
XIN XOUT VSS
Separate the VSS line for oscillation from other VSS lines
Fig. 55 VSS pattern on the underside of an oscillator
1. Keeping oscillator away from large current signal lines Microcomputer Mutual inductance M Large current GND 2. Installing oscillator away from signal lines where potential levels change frequently
N.G.
XIN XOUT VSS
Do not cross
CARR XIN XOUT VSS
Fig. 54 Wiring for a large current signal line/Writing of signal lines where potential levels change frequently
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 47 of 59
7545 Group
4. Setup for I/O ports Setup I/O ports using hardware and software as follows: * Connect a resistor of 100 or more to an I/O port in series. * As for an input port, read data several times by a program for checking whether input levels are equal or not. * As for an output port, since the output data may reverse because of noise, rewrite data to its port latch at fixed periods. * Rewrite data to direction registers and pull-up control registers at fixed periods. * Assigns a single byte of RAM to a software watchdog timer (SWDT) and writes the initial value N in the SWDT once at each execution of the main routine. The initial value N should satisfy the following condition: N+1 (Counts of interrupt processing executed in each main routine) As the main routine execution cycle may change because of an interrupt processing or others, the initial value N should have a margin. * Watches the operation of the interrupt processing routine by comparing the SWDT contents with counts of interrupt processing after the initial value N has been set. * Detects that the interrupt processing routine has failed and determines to branch to the program initialization routine for recovery processing in the following case: If the SWDT contents do not change after interrupt processing. * Decrements the SWDT contents by 1 at each interrupt processing. * Determines that the main routine operates normally when the SWDT contents are reset to the initial value N at almost fixed cycles (at the fixed interrupt processing count). * Detects that the main routine has failed and determines to branch to the program initialization routine for recovery processing in the following case: If the SWDT contents are not initialized to the initial value N but continued to decrement and if they reach 0 or less.
O.K.
Noise
Data bus
Direction register N.G. Port latch I/O port pins Noise
Fig. 56 Setup for I/O ports
5. Providing of watchdog timer function by software If a microcomputer runs away because of noise or others, it can be detected by a software watchdog timer and the microcomputer can be reset to normal operation. This is equal to or more effective than program runaway detection by a hardware watchdog timer. The following shows an example of a watchdog timer provided by software. In the following example, to reset a microcomputer to normal operation, the main routine detects errors of the interrupt processing routine and the interrupt processing routine detects errors of the main routine. This example assumes that interrupt processing is repeated multiple times in a single main routine processing.
Main routine (SWDT) N CLI Main processing
Interrupt processing routine (SWDT) (SWDT)1 Interrupt processing
(SWDT)
0?
>0
RTI Return
N
(SWDT) =N? N
0
Interrupt processing routine errors
Main routine errors
Fig. 57 Watchdog timer by software
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 48 of 59
7545 Group
ELECTRICAL CHARACTERISTICS (QzROM version) Absolute Maximum Ratings
Table 11
Symbol VCC VI VI VI VO Pd Topr Tstg
Absolute maximum ratings
Parameter Power source voltage VCC, VDDR Input voltage P00-P07, P10-P11, P20-P27, P30-P37, P40-P42 Input voltage RESET, XIN Input voltage CNVSS Output voltage P00-P07, P10-P11, P20-P27, P30-P37, P40-P42, XOUT, RESET Power dissipation Operating temperature Storage temperature Ta = 25C Conditions All voltages are based on VSS. When an input voltage is measured, output transistors are cut off. Ratings -0.3 to 5.0 -0.3 to VCC + 0.3 -0.3 to VCC + 0.3 -0.3 to VCC + 0.3 -0.3 to VCC + 0.3 200 -20 to 85 -40 to 125 Unit V V V V V mW C C
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 49 of 59
7545 Group
Recommended Operating Conditions
Table 12 Recommended operating conditions (1) (VCC = 1.8 to 3.6 V, Ta = -20 to 85 C, unless otherwise noted)
Symbol VCC VSS VIH VIH VIL VIL VIL IOH(peak) IOL(peak) IOL(peak) IOH(avg) IOL(avg) IOL(avg) IOH(peak) IOH(peak) IOL(peak) IOL(peak) IOH(avg) IOH(avg) IOL(avg) IOL(avg) f(XIN) VDET TDET Power source voltage (At 4MHz) Power source voltage Parameter Limits Min. 1.8 0.7VCC 0.8VCC 0 0 0 Typ. 3.0 0 VCC VCC 0.3VCC 0.2VCC 0.16VCC -80 80 80 -40 40 40 VCC = 3.0 V VCC = 3.0 V VCC = 3.0 V VCC = 3.0 V VCC = 3.0 V VCC = 3.0 V VCC = 3.0 V VCC = 3.0 V VCC = 1.8 to 3.6 V Ta = -20 to 85 C Ta = 0 to 50 C Low-voltage detection time of voltage drop detection circuit When detected voltage passes detection voltage at 50V/S Power-on reset circuit valid supply voltage rising time VCC = 0 to 1.8 V 1.65 1.70 1.75 1.75 0.2 -4 -20 4 24 -2 -10 2 12 4 1.85 1.80 1.2 Max. 3.6 Unit V V V V V V V mA mA mA mA mA mA mA mA mA mA mA mA mA mA MHz V V ms
"H" input voltage P00-P07, P10-P11, P20-P27, P30-P37, P40-P42 "H" input voltage RESET, XIN "L" input voltage P00-P07, P10-P11, P20-P27, P30-P37, P40-P42 "L" input voltage RESET, CNVSS "L" input voltage XIN "H" total peak output current (1)
P00-P07, P10-P11, P20-P27, P30-P37, P40-P42
"L" total peak output current (1)
P00-P07, P10-P11, P30-P37
"L" total peak output current (1)
P20-P27, P40-P42
"H" total average output current (1)
P00-P07, P10-P11, P20-P27, P30-P37, P40-P42
"L" total average output current (1)
P00-P07, P10-P11, P30-P37
"L" total average output current (1)
P20-P27, P40-P42
"H" peak output current (2)
P00-P07, P10-P11, P20-P27, P30-P37, P40-P41
"H" peak output current (2)
P42
"L" peak output current (2)
P00-P07, P10-P11, P30-P37
"L" peak output current
P20-P27, P40-P42
(2)
"H" average output current (3)
P00-P07, P10-P11, P20-P27, P30-P37, P40-P41
"H" average output current (3)
P42
"L" average output current (3)
P00-P07, P10-P11, P30-P37
"L" average output current (3)
P20-P27, P40-P42 Internal clock oscillation frequency (4) at ceramic oscillation or external clock input Detection voltage of voltage drop detection circuit
TPON
1
ms
NOTES:
1. The total output current is the sum of all the currents flowing through all the applicable ports. The total average current is an average value measured over 100 ms. The total peak current is the peak value of all the currents. 2. The peak output current is the peak current flowing in each port. 3. The average output current IOL (avg), IOH (avg) in an average value measured over 100 ms. 4. When the oscillation frequency has a duty cycle of 50 %.
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 50 of 59
7545 Group
Electrical Characteristics
Table 13 Electrical characteristics (1) (VCC = 1.8 to 3.6 V, Ta = -20 to 85 C, unless otherwise noted)
Symbol VOH Parameter Test conditions IOH = -2.0 mA VCC = 3.0 V IOH = -10 mA VCC = 3.0 V IOL = 2 mA VCC = 3.0 V IOL = 12 mA VCC = 3.0 V VCC = 3.0 V VCC = 3.0 V VI = VCC (Pin floating. Pull up transistors "off") VI = VCC VI = VSS (Pin floating. Pull up transistors "off") VCC = 3.0 V, VI = 3.0 V VCC = 3.0 V, VI = 0 V VCC = 3.0 V, VI = 0 V VCC = 3.0 V, VI = 3.0 V When clock stopped When clock stopped and reset by voltage drop detection 1.1 1.1 700 50 25 120 60 7.0 3.6 0.3 0.45 5.0 Limits Min. 2.1 Typ. Max. Unit V
"H" output voltage
P00-P07, P10-P11, P20-P27, P30-P37 (1) P40-P41
VOH VOL VOL VT+-VTVT+-VTIIH
"H" output voltage
P42
1.0 0.9 1.5
V V V V V A
"L" output voltage P00-P07, P10-P11, P30-P37 "L" output voltage P20-P27, P40-P42
Hysteresis INT0, INT1, P00-P07 (2) Hysteresis RESET
"H" input current
P00-P07, P10-P11, P20-P27, P30-P37, P40-P42
IIH IIL
"H" input current
RESET
5.0 -5.0
A A
"L" input current P00-P07, P10-P11, P20-P27, P30-P37, P40-P42
Feed-back resistor value between XIN-XOUT Pull-up resistor value P00-P07 Pull-up resistor value RESET Pull-down resistor value RESET RAM1 hold voltage (VCC) RAM2 hold voltage (VDDR)
RFB RPH RPH RPL VRAM1 VRAM2
3200 250 130
k k k k V V
NOTES:
1. In this case, CMOS output is selected by the port output mode selection register. 2. It is available only when operating key-on wake up.
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 51 of 59
7545 Group
Electrical Characteristics (continued)
Table 14 Electrical characteristics (2) (VCC = 1.8 to 3.6 V, Ta = -20 to 85 C, unless otherwise noted)
Symbol ICC Parameter Power source current Test conditions VCC = 3.0 V, f(XIN) = 4 MHz Output transistors "off" VCC = 3.0 V, f(XIN) = 4 MHz (in WIT state), functions except timer 1 disabled, Output transistors "off" All oscillation stopped (in STP state) Output transistors "off" VCC VDDR VCC - 0.6 V IDDR During reset by voltage drop detection circuit VDDR = 1.1 V, 1.8 V VCC 0 V Ta = 25C Ta = 85C Ta = 25C Ta = 85C 0.1 Limits Min. Typ. 0.6 0.3 Max. 1.2 0.6 Unit mA mA
0.1
1.0 10.0 1.0 10.0
A A A A
Timing Requirements
Table 15 Timing Requirements (VCC = 1.8 to 3.6 V, VSS = 0 V, Ta = -20 to 85 C, unless otherwise noted)
Symbol tw(RESET) tC(XIN) tWH(XIN) tWL(XIN) tWH(INT0) tWL(INT0) Reset input "L" pulse width External clock input cycle time External clock input "H" pulse width External clock input "L" pulse width INT0, INT1, input "H" pulse width INT0, INT1, input "L" pulse width Parameter Limits Min. 2 250 100 100 460 460 Typ. Max. Unit s ns ns ns ns ns
Switching Characteristics
Table 16 Switching Characteristics (VCC = 1.8 to 3.6 V, VSS = 0 V, Ta = -20 to 85 C, unless otherwise noted)
Symbol tr(CMOS) tf(CMOS) CMOS output rising time (1) CMOS output falling time
(1)
Parameter
Limits Min. Typ. 25 25 Max. 100 100
Unit ns ns
NOTE:
1. Pin XOUT is excluded
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 52 of 59
7545 Group
tWH(INT0)
tWL(INT0) 0.2VCC
INT0, INT1
0.8VCC
tW(RESET)
RESET
0.2VCC
0.8VCC
tC(XIN) tWH(XIN) tWL(XIN) 0.2VCC
XIN
0.8VCC
Fig 58. Timing chart
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 53 of 59
7545 Group
PACKAGE OUTLINE
JEITA Package Code P-LQFP32-7x7-0.80
RENESAS Code PLQP0032GB-A
Previous Code 32P6U-A
MASS[Typ.] 0.2g
HD *1
D
24
17 NOTE) 1. DIMENSIONS "*1" AND "*2" DO NOT INCLUDE MOLD FLASH. 2. DIMENSION "*3" DOES NOT INCLUDE TRIM OFFSET. bp b1
25
16
HE
E
c1
*2
c
Reference Symbol
Dimension in Millimeters
Terminal cross section 32
1 ZD Index mark
8
ZE
9
A2
A
F
A1
L L1
D E A2 HD HE A A1 bp b1 c c1 e x y ZD ZE L L1
y e
*3
Detail F bp x
Min Nom Max 6.9 7.0 7.1 6.9 7.0 7.1 1.4 8.8 9.0 9.2 8.8 9.0 9.2 1.7 0.1 0.2 0 0.32 0.37 0.42 0.35 0.09 0.145 0.20 0.125 0 8 0.8 0.20 0.10 0.7 0.7 0.3 0.5 0.7 1.0
JEITA Package Code P-LSSOP32-5.6x11-0.65
RENESAS Code PLSP0032JB-A
Previous Code 32P2X-B
MASS [Typ.] 0.18 g
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 54 of 59
c
7545 Group
APPENDIX NOTES ON PROGRAMMING Processor Status Register 1. Initializing of processor status register Flags which affect program execution must be initialized after a reset. In particular, it is essential to initialize the T and D flags because they have an important effect on calculations. After a reset, the contents of the processor status register (PS) are undefined except for the I flag which is "1".
Reset
Decimal Calculations 1. Execution of decimal calculations The ADC and SBC are the only instructions which will yield proper decimal notation, set the decimal mode flag (D) to "1" with the SED instruction. After executing the ADC or SBC instruction, execute another instruction before executing the SEC, CLC, or CLD instruction. 2. Notes on status flag in decimal mode When decimal mode is selected, the values of three of the flags in the status register (the N, V, and Z flags) are invalid after a ADC or SBC instruction is executed. The carry flag (C) is set to "1" if a carry is generated as a result of the calculation, or is cleared to "0" if a borrow is generated. To determine whether a calculation has generated a carry, the C flag must be initialized to "0" before each calculation. To check for a borrow, the C flag must be initialized to "1" before each calculation.
Initializing of flags
Set D flag to *g1*h
Main program
Fig 1.
Initialization of processor status register
ADC or SBC instruction
2. How to reference the processor status register To reference the contents of the processor status register (PS), execute the PHP instruction once then read the contents of (S+1). If necessary, execute the PLP instruction to return the PS to its original status.
NOP instruction
SEC, CLC, or CLD instruction
Fig 3.
Status flag at decimal calculations
(S) (S)+1 Stored PS
3. JMP instruction When using the JMP instruction in indirect addressing mode, do not specify the last address on a page as an indirect address. 4. Multiplication and division instructions (1) The index X mode (T) and the decimal mode (D) flags do not affect the MUL and DIV instruction. (2) The execution of these instructions does not change the contents of the processor status register.
Fig 2.
Stack memory contents after PHP instruction execution
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 55 of 59
7545 Group
5. Read-modify-write instruction Do not execute a read-modify-write instruction to the read invalid address (SFR). The read-modify-write instruction operates in the following sequence: read one-byte of data from memory, modify the data, write the data back to original memory. The following instructions are classified as the read-modify-write instructions in the 740 Family. (1) Bit management instructions: CLB, SEB (2) Shift and rotate instructions: ASL, LSR, ROL, ROR, RRF (3) Add and subtract instructions: DEC, INC (4) Logical operation instructions (1's complement): COM Add and subtract/logical operation instructions (ADC, SBC, AND, EOR, and ORA) when T flag = "1" operate in the way as the read-modify-write instruction. Do not execute the read invalid SFR. When the read-modify-write instruction is executed to read invalid SFR, the instruction may cause the following consequence: the instruction reads unspecified data from the area due to the read invalid condition. Then the instruction modifies this unspecified data and writes the data to the area. The result will be random data written to the area or some unexpected event. 3. Modifying output data with bit managing instruction When the port latch of an I/O port is modified with the bit managing instruction*1 , the value of the unspecified bit may be changed. I/O ports are set to input or output mode in bit units. Reading from a port register or writing to it involves the following operations. * Port in input mode Read: Read the pin level. Write: Write to the port latch. * Port in output mode Read: Read the port latch or read the output from the peripheral function (specifications differ depending on the port). Write: Write to the port latch. (The port latch value is output from the pin.) Since bit managing instructions*1 are read-modify-write instructions,*2 using such an instruction on a port register causes a read and write to be performed simultaneously on the bits other than the one specified by the instruction. When an unspecified bit is in input mode, its pin level is read and that value is written to the port latch. If the previous value of the port latch differs from the pin level, the port latch value is changed. If an unspecified bit is in output mode, the port latch is generally read. However, for some ports the peripheral function output is read, and the value is written to the port latch. In this case, if the previous value of the port latch differs from the peripheral function output, the port latch value is changed. *1 Bit managing instructions: SEB and CLB instructions *2 Read-modify-write instructions: Instructions that read memory in byte units, modify the value, and then write the result to the same location in memory in byte units 4. Direction register The values of the port direction registers cannot be read. That is, it is impossible to use the LDA instruction, memory operation instruction when the T flag is "1", addressing mode using direction register values as qualifiers, and bit test instructions such as BBC and BBS. It is also impossible to use bit operation instructions such as CLB and SEB and read-modify-write instructions of direction registers for calculations such as ROR. For setting direction registers, use the LDM instruction, STA instruction, etc.
NOTES ON PERIPHERAL FUNCTIONS Notes on I/O Ports 1. Pull-up control register When using each port which built in pull-up resistor as an output port, the pull-up control bit of corresponding port becomes invalid, and pull-up resistor is not connected. Pull-up control is effective only when each direction register is set to the input mode. 2. Notes in stand-by state In stand-by state*1 for low-power dissipation, do not make input levels of an input port and an I/O port "undefined". Pull-up (connect the port to Vcc) or pull-down (connect the port to Vss) these ports through a resistor. When determining a resistance value, note the following points: * External circuit * Variation of output levels during the ordinary operation When using a built-in pull-up resistor, note on varied current values: * When setting as an input port : Fix its input level * When setting as an output port : Prevent current from flowing out to external. The output transistor becomes the OFF state, which causes the ports to be the high-impedance state. Note that the level becomes "undefined" depending on external circuits. Accordingly, the potential which is input to the input buffer in a microcomputer is unstable in the state that input levels of an input port and an I/O port are "undefined". This may cause power source current. *1 stand-by state : the stop mode by executing the STP instruction
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 56 of 59
7545 Group
Termination of Unused Pins 1. Terminate unused pins Perform the following wiring at the shortest possible distance (20 mm or less) from microcomputer pins. (1) I/O ports Set the I/O ports for the input mode and connect each pin to VCC or VSS through each resistor of 1 k to 10 k. The port which can select a built-in pull-up resistor can also use the built-in pullup resistor. When using the I/O ports as the output mode, open them at "L" or "H". * When opening them in the output mode, the input mode of the initial status remains until the mode of the ports is switched over to the output mode by the program after reset. Thus, the potential at these pins is undefined and the power source current may increase in the input mode. With regard to an effects on the system, thoroughly perform system evaluation on the user side. * Since the direction register setup may be changed because of a program runaway or noise, set direction registers by program periodically to increase the reliability of program. 2. Termination remarks (1) I/O ports setting as input mode (1) Do not open in the input mode. * The power source current may increase depending on the firststage circuit. * An effect due to noise may be easily produced as compared with proper termination (1) shown on the above "1. Terminate unused pins". (2) Do not connect to VCC or VSS directly. If the direction register setup changes for the output mode because of a program runaway or noise, a short circuit may occur. (3) Do not connect multiple ports in a lump to VCC or VSS through a resistor. If the direction register setup changes for the output mode because of a program runaway or noise, a short circuit may occur between ports. Notes on Interrupts 1. Change of relevant register settings When not requiring for the interrupt occurrence synchronous with the following case, take the sequence shown in Figure 4. * When switching external interrupt active edge * When switching interrupt sources of an interrupt vector address where two or more interrupt sources are allocated
Set the corresponding interrupt enable bit to *g0*h (disabled).
Set the interrupt edge selection bit, active edge switch bit, or the interrupt source selection bit.
NOP (One or more instructions)
Set the corresponding interrupt request bit to *g0*h (no interrupt request issued).
Set the corresponding interrupt enable bit to *g1*h (enabled).
Fig 4.
Sequence of changing relevant register
When setting the followings, the interrupt request bit of the corresponding interrupt may be set to "1". * When switching external interrupt active edge INT0 interrupt edge selection bit (bit 0 of Interrupt edge selection register (address 3A16)) INT1 interrupt edge selection bit (bit 1 of Interrupt edge selection register) Key-on wakeup edge selection register (address 1916) 2. Check of interrupt request bit When executing the BBC or BBS instruction to determine an interrupt request bit immediately after this bit is set to "0", take the following sequence. If the BBC or BBS instruction is executed immediately after an interrupt request bit is cleared to "0", the value of the interrupt request bit before being cleared to "0" is read.
Set the interrupt request bit to *g0*h (no interrupt issued)
NOP (One or more instructions)
Execute the BBC or BBS instruction
Fig 5.
Sequence of check of interrupt request bit
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 57 of 59
7545 Group
Notes on Timers 1. When n (0 to 255) is written to a timer latch, the frequency division ratio is 1/(n+1). 2. Timer count source Stop timer 2, timer 3 counting to change its count source. 3. Timer 1, timer 2, timer 3 count start timing and count time when operation starts Time to first underflow is different from time among next underflow by the timing to start the timer and count source operations after count starts. 4. Timer 2, timer 3, carrier wave generating circuit The timing adjustment of the output waveform causes the gap between the timer count value and the output waveform, and the output waveform changes in the reload cycle after the timer underflow. Moreover, the timer interrupt occurs at the change point of the output waveform. (The timing of the interrupt occurrence is behind a half cycle of the count source, compared with timer 1. ) Notes on Watchdog Timer 1. The watchdog timer is operating during the wait mode. Write data to the watchdog timer control register to prevent timer underflow. 2. The watchdog timer stops during the stop mode. However, the watchdog timer is running during the oscillation stabilizing time after the STP instruction is released. In order to avoid the underflow of the watchdog timer, the watchdog timer H count source selection bit (bit 7 of watchdog timer control register (address 3916)) must be set to "0" just before executing the STP instruction. Notes on RESET Pin (1) Connecting capacitor In case where the RESET signal rise time is long, connect a ceramic capacitor or others across the RESET pin and the Vss pin. And use a 1000 pF or more capacitor for high frequency use. When connecting the capacitor, note the following : * Make the length of the wiring which is connected to a capacitor as short as possible. * Be sure to verify the operation of application products on the user side. If the several nanosecond or several ten nanosecond impulse noise enters the RESET pin, it may cause a microcomputer failure.
Vcc Recommended operating condition min. value VDET Reset
Notes on Power-on Reset Circuit Reset occurs by the power-on reset circuit under the following conditions; * when the power source voltage rises from 0 V to 1.8 V within 1 ms. Also, note that reset may not occur under the following conditions; * when the power source voltage rises from the voltage higher than 0 V. * when it takes longer than 1 ms that the power source voltage rises from 0 V to 1.8 V. Note on Voltage Drop Detection Circuit The voltage drop detection circuit detection voltage of this product is set up lower than the minimum value of the supply voltage of the recommended operating conditions. When the supply voltage of a microcomputer falls below to the minimum value of recommended operating conditions and regoes up (ex. battery exchange of an application product), depending on the capacity value of the bypass capacitor added to the power supply pin, the following case may cause program failure ; supply voltage does not fall below to VDET, and its voltage regoes up with no reset. In such a case, please design a system which supply voltage is once reduced below to VDET and re-goes up after that.
Vcc Recommended operating condition min. value VDET No reset Program failure may occur. Normal operation
Fig 6.
VCC and VDET
Notes on Clock Generating Circuit (1) CPU mode register Processor mode bits (bits 1 and 0) of CPU mode register (address 3B16) is used to control operation modes of the microcomputer. In order to prevent the dead-lock by erroneously writing (ex. program run-away), these bits can be rewritten only once after releasing reset. After rewriting, it is disabled to write any data to the bit. (The emulator MCU "M37545RLSS" is excluded.) Also, when the read-modify-write instructions (SEB, CLB, etc.) are executed to bits 2, 6, 7, bits 1 and 0 are locked. (2) Ceramic resonator When the ceramic resonator/quartz-crystal oscillation is used for the main clock, connect the ceramic resonator and the external circuit to pins XIN and XOUT at the shortest distance. A feedback resistor is built-in.
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 58 of 59
7545 Group
Notes on Oscillation Control 1. Stop mode (1) When the stop mode is used, set "1" (STP instruction enabled) to the STP instruction function selection bit (bit 1 of Function set ROM data (address FFDA16)). (2) The oscillation stabilizing time after release of STP instruction can be selected from "set automatically"/"not set automatically" by the oscillation stabilizing time set bit after release of the STP instruction (bit 0 of MISRG (address 3816)). When "0" is set to this bit, "0316" is set to timer 1 and "FF16" is set to prescaler 1 automatically at the execution of the STP instruction. When "1" is set to this bit, set the wait time to timer 1 and prescaler 1 according to the oscillation stabilizing time of the oscillation. Also, when timer 1 is used, set values again to timer 1 and prescaler 1 after system is returned from the stop mode. Note on Power Source Voltage When the power source voltage value of a microcomputer is less than the value which is indicated as the recommended operating conditions, the microcomputer does not operate normally and may perform unstable operation. In a system where the power source voltage drops slowly when the power source voltage drops or the power supply is turned off, reset a microcomputer when the supply voltage is less than the recommended operating conditions and design a system not to cause errors to the system by this unstable operation. Note on Product Shipped in Blank As for the product shipped in blank, Renesas does not perform the writing test to user ROM area after the assembly process though the QzROM writing test is performed enough before the assembly process. Therefore, a writing error of approx.0.1 % may occur. Moreover, please note the contact of cables and foreign bodies on a socket, etc. because a writing environment may cause some writing errors. Precautions Regarding Overvoltage Make sure that voltage exceeding the VCC pin voltage is not applied to other pins. In particular, ensure that the state indicated by bold lines in Figure 7 does not occur for pin P40 (CNVSS power source pin for QzROM) during power-on or power-off. Otherwise the contents of QzROM could be rewritten.
~ ~
DATA REQUIRED FOR QzROM WRITING ORDERS The following are necessary when ordering a QzROM product shipped after writing: 1. QzROM Writing Confirmation Form* 2. Mark Specification Form* 3. ROM data...........Mask file * For the QzROM writing confirmation form and the mark specification form, refer to the "Renesas Technology Corp." Homepage (http://www.renesas.com/homepage.jsp). Notes on QzROM Writing Orders When ordering the QzROM product shipped after writing, submit the mask file (extension: .msk) which is made by the mask file converter MM. Be sure to set the ROM option setup data (referred to as "Mask option setup data" in MM) when making the mask file by using the mask file converter MM. Notes on ROM Code Protect (QzROM product shipped after writing) As for the QzROM product shipped after writing, the ROM code protect is specified according to the ROM option setup data in the mask file which is submitted at ordering. Renesas Technology corp. write the value of the ROM option setup data in the ROM code protect address (address FFDB16) when writing to the QzROM. As a result, in the contents of the ROM code protect address the ordered value may differ from the actual written value. The ROM option setup data in the mask file is "0016" for protect enabled or "FF16" for protect disabled. Therefore, the contents of the ROM code protect address of the QzROM product shipped after writing is "0016" or "FF16". If you set except "0016" and "FF16" or nothing at the ROM option data, we cannot generate the ROM data.
NOTES ON HARDWARE Handling of Power Source Pin In order to avoid a latch-up occurrence, connect a capacitor suitable for high frequencies as bypass capacitor between power source pin (VCC pin, VDDR pin) and GND pin (VSS pin). Besides, connect the capacitor to as close as possible. For bypass capacitor which should not be located too far from the pins to be connected, a ceramic capacitor of 0.1 F is recommended. Handling of CNVSS Pin The CNVSS pin is connected to the internal memory circuit block by a low-ohmic resistance, since it has the multiplexed function to be a programmable power source pin (VPP pin) as well. To improve the noise reduction, make the length of wiring between the CNVSS pin and the VSS pin the shortest possible.
1.8V VCC pin voltage
1.8V
CNVSS pin voltage "L" input
(1) Input voltage to other MCU pins rises before Vcc pin voltage. (2) Input voltage to other MCU pins falls after Vcc pin voltage. Note: The internal circuitry is unstable when Vcc is below the minimum voltage specification of 1.8 V (shaded portion), so particular care should be exercised regarding overvoltage.
Fig 7.
Example of Overvoltage
Rev.1.06 Mar 07, 2008 REJ03B0140-0106
Page 59 of 59
~ ~
REVISION HISTORY
Rev. 1.00 1.01 Date Page Feb. 07, 2005 May. 10, 2005
-
7545 Group Datasheet
Description Summary First edition issued Fig.22 : Carrier wave auto-control bit; "1" and "0" added. Standard operation of watchdog timer and Operation of STP instruction disable bit: address FFFA16 address FFDA16 Note on Watchdog Timer 2: ... set to "1" just before ... ... set to "0" just before ... Voltage Drop Detection Circuit: address FFFA16 address FFDA16 State transition deleted Fig. 51 partly revised Table 9: RPL; V k Fig. 55: CNTR0 INT0 Notes on Watchdog timer: ... set to "1" just before ... ... set to "0" just before ... Notes on Clock Generating Circuit 1: bits 2 to 4 to 7 bits 2, 6, 7 Table 1: added. ROM Code Protect Address (address FFDB16) added. Termination of unused pins added. [ROM option data] ROMOP [Function set ROM] FSROM Fig. 42, 43: partly revised. (4) Wiring to CNVSS pin (4) Wiring to VPP pin DATA REQUIRED FOR QzROM WRITING ORDERS, Notes On QzROM Writing Orders, Notes On ROM Code Protect added. STP instruction disable bit STP instruction function selection bit "Operation of STP instruction function selection bit" revised. Fig.33 Block diagram of watchdog timer and reset circuit "Count start (Watchdog timer disable bit (bit 0 of FSROM))" added. Function set ROM : Description revised. Fig.42: Reserved Renesas shipment test area "When the checksum is included in the user program, avoid assigning it to these areas." added to Note. Fig.43: Bit 0, bit 1 and bit 4 of FSROM revised. "PRELIMINARY" eliminated. Fig.4 "Under development" eliminated. Revised by additional new products (memory size) Fig. 2 is added Revised by additional new products (memory size and package) Fig. 5 is added Revised by additional new products (memory size, package, Fig. 6, and Table 4) Fig. 9 is revised Function set ROM Area and Notes (2) - (5) added Clock circuit is deleted from [Function set ROM data] FSROM Notes on use deleted Fig. 10 is revised Fig.12 added Interrupts is revised whole
20 26
28 33 36 40 42 47 1.02 Jul. 20, 2005
All pages ROM option Function set ROM 3 11 16 35 37 51
1.03
Oct. 21, 2005
-
29 30 35
1.04 1.05 1.06
May. 17, 2006 May. 18, 2006 Feb. 29, 2008
-
6 1 2 3 6 8 12 13
14 16 20 to 24
(1/2)
REVISION HISTORY
Rev. 1.06 Date Page Feb. 29, 2008 34
7545 Group Datasheet
Description Summary Initial value of watchdog timer: Description added Operation of STP instruction function selection bit deleted STP instruction function selection bit added Fig. 35 is revised Fig. 42 is revised Function set ROM is moved to Memory (page 13) QzROM Writing Mode is added Notes on Hardware is added (4) Wiring to VPP pin: "VPP" "CNVSS" Fig.52 is revised Symbol of Feed-back resistor value between XIN-XOUT is revised PLSP0032JB-A package is added. Fig.2, 4, and BRK instruction deleted Modifying output data with bit managing instruction is revised Notes on Watchdog Timer: 3. is added Notes on Oscillation Control is revised ("1" "0") Precautions Regarding Overvoltage is added
35 38 40 40 to 44 45 46 52 55 56 57 59 60
(2/2)
Sales Strategic Planning Div.
Nippon Bldg., 2-6-2, Ohte-machi, Chiyoda-ku, Tokyo 100-0004, Japan
Notes: 1. This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use. Renesas neither makes warranties or representations with respect to the accuracy or completeness of the information contained in this document nor grants any license to any intellectual property rights or any other rights of Renesas or any third party with respect to the information in this document. 2. Renesas shall have no liability for damages or infringement of any intellectual property or other rights arising out of the use of any information in this document, including, but not limited to, product data, diagrams, charts, programs, algorithms, and application circuit examples. 3. You should not use the products or the technology described in this document for the purpose of military applications such as the development of weapons of mass destruction or for the purpose of any other military use. When exporting the products or technology described herein, you should follow the applicable export control laws and regulations, and procedures required by such laws and regulations. 4. All information included in this document such as product data, diagrams, charts, programs, algorithms, and application circuit examples, is current as of the date this document is issued. Such information, however, is subject to change without any prior notice. Before purchasing or using any Renesas products listed in this document, please confirm the latest product information with a Renesas sales office. Also, please pay regular and careful attention to additional and different information to be disclosed by Renesas such as that disclosed through our website. (http://www.renesas.com ) 5. Renesas has used reasonable care in compiling the information included in this document, but Renesas assumes no liability whatsoever for any damages incurred as a result of errors or omissions in the information included in this document. 6. When using or otherwise relying on the information in this document, you should evaluate the information in light of the total system before deciding about the applicability of such information to the intended application. Renesas makes no representations, warranties or guaranties regarding the suitability of its products for any particular application and specifically disclaims any liability arising out of the application and use of the information in this document or Renesas products. 7. With the exception of products specified by Renesas as suitable for automobile applications, Renesas products are not designed, manufactured or tested for applications or otherwise in systems the failure or malfunction of which may cause a direct threat to human life or create a risk of human injury or which require especially high quality and reliability such as safety systems, or equipment or systems for transportation and traffic, healthcare, combustion control, aerospace and aeronautics, nuclear power, or undersea communication transmission. If you are considering the use of our products for such purposes, please contact a Renesas sales office beforehand. Renesas shall have no liability for damages arising out of the uses set forth above. 8. Notwithstanding the preceding paragraph, you should not use Renesas products for the purposes listed below: (1) artificial life support devices or systems (2) surgical implantations (3) healthcare intervention (e.g., excision, administration of medication, etc.) (4) any other purposes that pose a direct threat to human life Renesas shall have no liability for damages arising out of the uses set forth in the above and purchasers who elect to use Renesas products in any of the foregoing applications shall indemnify and hold harmless Renesas Technology Corp., its affiliated companies and their officers, directors, and employees against any and all damages arising out of such applications. 9. You should use the products described herein within the range specified by Renesas, especially with respect to the maximum rating, operating supply voltage range, movement power voltage range, heat radiation characteristics, installation and other product characteristics. Renesas shall have no liability for malfunctions or damages arising out of the use of Renesas products beyond such specified ranges. 10. Although Renesas endeavors to improve the quality and reliability of its products, IC products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions. Please be sure to implement safety measures to guard against the possibility of physical injury, and injury or damage caused by fire in the event of the failure of a Renesas product, such as safety design for hardware and software including but not limited to redundancy, fire control and malfunction prevention, appropriate treatment for aging degradation or any other applicable measures. Among others, since the evaluation of microcomputer software alone is very difficult, please evaluate the safety of the final products or system manufactured by you. 11. In case Renesas products listed in this document are detached from the products to which the Renesas products are attached or affixed, the risk of accident such as swallowing by infants and small children is very high. You should implement safety measures so that Renesas products may not be easily detached from your products. Renesas shall have no liability for damages arising out of such detachment. 12. This document may not be reproduced or duplicated, in any form, in whole or in part, without prior written approval from Renesas. 13. Please contact a Renesas sales office if you have any questions regarding the information contained in this document, Renesas semiconductor products, or if you have any other inquiries.
RENESAS SALES OFFICES
Refer to "http://www.renesas.com/en/network" for the latest and detailed information. Renesas Technology America, Inc. 450 Holger Way, San Jose, CA 95134-1368, U.S.A Tel: <1> (408) 382-7500, Fax: <1> (408) 382-7501 Renesas Technology Europe Limited Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, U.K. Tel: <44> (1628) 585-100, Fax: <44> (1628) 585-900 Renesas Technology (Shanghai) Co., Ltd. Unit 204, 205, AZIACenter, No.1233 Lujiazui Ring Rd, Pudong District, Shanghai, China 200120 Tel: <86> (21) 5877-1818, Fax: <86> (21) 6887-7858/7898 Renesas Technology Hong Kong Ltd. 7th Floor, North Tower, World Finance Centre, Harbour City, Canton Road, Tsimshatsui, Kowloon, Hong Kong Tel: <852> 2265-6688, Fax: <852> 2377-3473 Renesas Technology Taiwan Co., Ltd. 10th Floor, No.99, Fushing North Road, Taipei, Taiwan Tel: <886> (2) 2715-2888, Fax: <886> (2) 3518-3399 Renesas Technology Singapore Pte. Ltd. 1 Harbour Front Avenue, #06-10, Keppel Bay Tower, Singapore 098632 Tel: <65> 6213-0200, Fax: <65> 6278-8001 Renesas Technology Korea Co., Ltd. Kukje Center Bldg. 18th Fl., 191, 2-ka, Hangang-ro, Yongsan-ku, Seoul 140-702, Korea Tel: <82> (2) 796-3115, Fax: <82> (2) 796-2145
http://www.renesas.com
Renesas Technology Malaysia Sdn. Bhd Unit 906, Block B, Menara Amcorp, Amcorp Trade Centre, No.18, Jln Persiaran Barat, 46050 Petaling Jaya, Selangor Darul Ehsan, Malaysia Tel: <603> 7955-9390, Fax: <603> 7955-9510
(c) 2008. Renesas Technology Corp., All rights reserved. Printed in Japan.
Colophon .7.2


▲Up To Search▲   

 
Price & Availability of M37545G8-XXXGP

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X